| Date: | Fri, 5 Mar 2004 16:03:05 -0600 |
| Reply-To: | Kevin Myers <KevinMyers@AUSTIN.RR.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Kevin Myers <KevinMyers@AUSTIN.RR.COM> |
| Organization: | Posted via Supernews, http://www.supernews.com |
| 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:
%macro testit(arg1);
%put &arg1;
%mend testit;
%testit(%nrquote(a&b))
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...?
Thanks,
s/KAM
|