Date: Fri, 5 Mar 2004 17:39:18 -0500
Reply-To: "Farrer, Andrew C" <Andrew.Farrer@CIBC.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Farrer, Andrew C" <Andrew.Farrer@CIBC.COM>
Subject: Re: Macro Quoting Problem
I am no expert either but using %nrstr seems ok:
From: Kevin Myers [mailto:KevinMyers@AUSTIN.RR.COM]
Sent: Friday, March 05, 2004 5:03 PM
Subject: Macro Quoting Problem
Most of the time I think that I know the SAS macro language pretty well.
But then along comes some simple problem like the following to knock my ego
back down to size:
Now, what I want to happen in this case is to have the text "a&b" printed.
I do get the text printed ok (as long as a macro variable named b doesn't
happen to exist), but I also get the log warning about apparant symbolic
reference B not resolved.
How can I get values like this to print without attempting attempting the
macro variable substitution? I tried using %nrquote and even %superq in the
%put statement, and that didn't have any effect (I didn't really think that
it would). Surely I must be overlooking something obvious...?