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 (March 2008, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: chandrasekar.tm@GMAIL.COM

On Mon, 24 Mar 2008 03:48:21 -0700, chandrasekar.tm@GMAIL.COM wrote:

>Hi, >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; > - > 22 > - > 202 >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 >ignored.

hi, 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. cheers, chang p.s. &&b. resolves exactly the same as &b or &b. &&&b is something else you don't seem to worry about yet.


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