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:         Tue, 25 Mar 2008 08:51:54 -0400
Reply-To:     Nathaniel.Wooding@DOM.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject:      Re: error in calling variable
Comments: To: Chang Chung <chang_y_chung@HOTMAIL.COM>
In-Reply-To:  <200803242024.m2OGEwI9002872@malibu.cc.uga.edu>
Content-Type: text/plain; charset="US-ASCII"

In addition to the suggestions offered by Chang and Sig, I suggest that you include the option Symbolgen. With this option, for each time a macro variable is used, SAS will print a line in the log which says something like Variable &b resolved to ...

Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977

Chang Chung <chang_y_chung@HO TMAIL.COM> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Re: error in calling variable

03/24/2008 04:24 PM

Please respond to Chang Chung <chang_y_chung@HO TMAIL.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.

----------------------------------------- CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and/or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.


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