[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sas-l
Subject:    Re: mask
From:       Arun X Kumar <Arunk () DELHI ! TCS ! CO ! IN>
Date:       2003-10-31 4:21:21
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic