Date: Tue, 25 Mar 2008 08:51:54 -0400
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject: Re: error in calling variable
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 ...
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977
Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
Re: error in calling variable
Please respond to
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.
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.