LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2010, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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".

data matt; s = "A&W root beer"; call symput('mattmacro', s); run;

proc print data=matt; run;

data two; set matt; if s = "&mattmacro" then output; /* source of warning */ run;

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.

Thanks!

Matt

-- W. Matthew Wilson matt@tplus1.com http://tplus1.com


Back to: Top of message | Previous page | Main SAS-L page