Date: Mon, 24 Mar 2008 16:24:48 -0400
Reply-To: Chang Chung <chang_y_chung@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Chang Chung <chang_y_chung@HOTMAIL.COM>
Subject: Re: error in calling variable
On Mon, 24 Mar 2008 03:48:21 -0700, chandrasekar.tm@GMAIL.COM wrote:
>In below program i call a macro variable called 'b' dynamicaly.
>But iam getting following error.
>data auto_&b; set newproset; by cp; if cp=&&b.; run;
>ERROR 22-322: Syntax error, expecting one of the following: a name, a
>quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.
>ERROR 202-322: The option or parameter is not recognized and will be
use option mprint; to see the resolved code. my best guess is that &b is
resolved to something that is not allowed in the dataset name (something
other than letters, digits, and underscore characters.
p.s. &&b. resolves exactly the same as &b or &b. &&&b is something else you
don't seem to worry about yet.