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 (October 2003, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 31 Oct 2003 09:39:21 +0530
Reply-To:   Arunk@DELHI.TCS.CO.IN
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Arun X Kumar <Arunk@DELHI.TCS.CO.IN>
Subject:   Re: mask
Comments:   To: PD <sophe88@YAHOO.COM>
Content-Type:   text/plain; charset="us-ascii"

Hi, As there is no macro variable with name C, so &C is not getting resolved and so you get the message. You just replace double quotes with single quotes, it should work...

Regards Arun Kumar

PD <sophe88@YAHOO.COM> Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> 10/31/2003 08:35 AM Please respond to PD

To: SAS-L@LISTSERV.UGA.EDU cc: Subject: mask

One var has character values such S&C, F&B and so on.

So when code like this

" if var in ("S&C") then brother =1; else brother =0;"

is executed, SAS said macro can not be resolved. Of course.

I know we can mask &, as I learned from SAS training course. Can somebody provide a quick tip? I can not find my example quickly. Thanks.

PD


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