Date: Thu, 20 May 2010 14:55:54 -0400
Reply-To: "W. Matthew Wilson" <matt@TPLUS1.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "W. Matthew Wilson" <matt@TPLUS1.COM>
Subject: Need help escaping macros
Content-Type: text/plain; charset=ISO-8859-1
I have some code that sort of like the code below. When I run this
code, it writes a WARNING to my log file "unresolved symbol W".
s = "A&W root beer";
call symput('mattmacro', s);
proc print data=matt;
if s = "&mattmacro" then output; /* source of warning */
I've been messing around with using %QUOTE, %NRQUOTE, %STR, %NRSTR,
but I'm not making progress. Either I end up escaping the mattmacro
to the point where data two has zero rows (this is wrong), or I
trigger the warning.
This is the last warning in my program and I want it gone.
W. Matthew Wilson