Hello Jia and other SAS-L Friends,
I'm not sure I know the answer but I have some ideas. However, first, I
have a question. Are you building the URL outside of an HTML form? If you
are, the following link on the SAS web site might interest you:
You might also want to look at the following link:
Look at the section titled "Specifying Name/Value Pairs in a URL".
Most likely, the ampersands might be playing a role. SAS/IntrNet strips
off "unsafe characters" unless you tell it not to do so. Please see:
Part of that link states:
The APPSRV_UNSAFE function returns the complete, original value of an input
name/value pair. Normally unsafe characters (see the UNSAFE option) are
stripped from input values before creating the input macro variables. This
is done so that macro variables may be freely used in a application program
without any unwanted SAS macro language processing. In some cases, such as
processing free-format input text, you may want to retrieve the complete,
original value using the APPSRV_UNSAFE function.
Michael "Mad Doggy" Davis
At 10:37 AM 1/27/2005 -0800, jia.lan@GMAIL.COM wrote:
>I got a problem when I tried to pass a variable from URL to SAS.
>Part of the URL are listed below. When I was trying to pass the macro
>variable "citystate" to SAS, it doesn't work. The annoying part is the
>"%str". Does anybody has the experience how to pass a variable with
>"%str(something)" from URL to SAS? How shall I modify the URL below to
>make it work?
>Any answers/suggestions are highly appreciated!
>&libdata=test&citystate=%str('Birmingham, AL','Dothan, AL','Huntsville,
Michael L. Davis