Date: Thu, 4 Aug 2005 22:56:38 -0400
Reply-To: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Howard Schreier <hs AT dc-sug DOT org>" <nospam@HOWLES.COM>
Subject: Re: a question about macro variable
There is a reference to macro variable &A, but it has not been created. The
fact that there is a data step variable named A is essentially irrelevant.
By the way, if you expected A to have a value of 100, there are two other
mistakes:
1. omitting the ampersand needed to reference macro variable &NUM1.
2. using single quotes (should be double quotes if A is to be character; no
quotes at all if A is to be numeric).
On Thu, 4 Aug 2005 16:32:57 -0700, Kai Zhang <chen4sas@YAHOO.COM> wrote:
>%let num1=100;
>
>data k;
> a='num1';
> b=&a;
>
>I was told "a" can not be resolved. I'll appreciate if
>someone could explain it. Thank you!
>
>
>
>____________________________________________________
>Start your day with Yahoo! - make it your home page
>http://www.yahoo.com/r/hs