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 (April 2011, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 12 Apr 2011 17:12:39 -0700
Reply-To:   "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Nordlund, Dan (DSHS/RDA)" <NordlDJ@DSHS.WA.GOV>
Subject:   Re: & and %str, another question
In-Reply-To:   <000101cbf96e$7adf89a0$709e9ce0$@com>
Content-Type:   text/plain; charset=utf-8

> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of > bbser 2009 > Sent: Tuesday, April 12, 2011 5:05 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: & and %str, another question > > After running the wrong code, I had a look at the log. There is > something I > do not understand. > Since Jun is not resolved, how can the macro variable be resolved > "correctly" to Mary&Jun? > Thanks. > > Max > > ------- code > > %let period=%str(Mary&Jun); > %put period resolves to: &period; > > --------- log > > 29 %let period=%str(Mary&Jun); > WARNING: Apparent symbolic reference JUN not resolved. > 30 %put period resolves to: &period; > WARNING: Apparent symbolic reference JUN not resolved. > period resolves to: Mary&Jun

SAS is telling you that it looked for a macro variable named JUN, couldn't find one, so SAS left the text as it found it (including the ampersand).

Hope this is helpful,

Dan

Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204


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