Date: Thu, 2 Jan 2003 07:57:49 -0500
Reply-To: Don Henderson <donaldjhenderson@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Don Henderson <donaldjhenderson@HOTMAIL.COM>
Subject: Re: Passing Macros through SAS IntrNet #2
Content-Type: text/plain; charset="iso-8859-1"
A couple of ideas/questions. And my apologies if you have tried these, or I
am stating the obvious.
1. If the value of group is being written to the URL string exactly as you
have shown it here, then your URL includes blanks. That is not good practice
and depending on your browser may cause the URL to be misinterpreted (IE is
more forgiving of this than NS). So one idea is that maybe there is an
earlier name/value pair with blanks (or other problematic special chars)
that is causing the problem.
2. You can deal with the blanks (assuming you are generating a URL as
opposed to a form field), by using the urlencode function, e.g.,
3. Since the default behavior of the Dispatcher is to treat " as an unsafe
character, they might be stripped out. Check the unsafe paramater on your
proc appsrv statement to see if " has been removed from the unsafe list. If
not, that is also an issue.
4. You might also want to look at the values being passed into the program
using _debug = 129 which gives you back both the log and a dump of what the
broker is passing to the SAS session. You could just grab the url string in
the generated url, edit it and then launch it yourself. It might give you
5. And I am not sure I understand what you mean by you can't "put the
&string because the values are in double quotes? Do you mean that you can't
put .... "&string" . . .
If so, just assign it to a data step var first:
dsgroup = urlencode(symget('GROUP'));
and then you can write it out as:
put ......dsgroup +(-1) . . . . .
6. Are you sure the macro var has the value you expect in the program that
is generating the URL string? I know you said you did a %put _All_, but was
that in the part of the code where the url string is being written?
----- Original Message -----
From: "Mark Wise" <wiseagroup@HOTMAIL.COM>
Sent: Thursday, January 02, 2003 7:20 AM
Subject: Passing Macros through SAS IntrNet #2
> To clarify I posted the below message.
> My problem is I am passing a string which was built in a macro and
> has the value of. When I did %put _all_; In the program that passes the
> string to the url I see that the &string is group = "ABC" and age = 12;
> However, in the program to which the string is passed it resolves to
> = 0;
> Unfortunately I can not put the "&string" because the values are in
> If anyone can help I would appreciate it!
> >>>wiseagroup 12/31/02 04:38 >>>
> Hi fellow SAS users,
> I am new to SAS internet, our organization had a SAS institute Consultant
> develop our application and we are now making updates and changes.
> We need to pass the value of 2 SAS macro variables and 1 variable to a
> that is a popup window.
> Can anyone help??? I can not access hotmail at work if possible can you
> on the SAS-L.
> Thanks and Happy New Year
> MSN 8 with e-mail virus protection service: 2 months FREE*