Date: Tue, 19 Nov 2002 09:39:26 -0500
Reply-To: "Nevseta, Floyd G" <Floyd.G.Nevseta@BANKOFAMERICA.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Nevseta, Floyd G" <Floyd.G.Nevseta@BANKOFAMERICA.COM>
Subject: Re: Macro Variable Creation using CALL SYMPUT
Content-type: text/plain; charset=iso-8859-1
Try using double quotes around &CLAVAR:
CALL SYMPUT ('C1'||"&CLAVAR",C1);
From: Hayes, Jim M [mailto:Jim.M.Hayes@DELTA.COM]
Sent: Tuesday, November 19, 2002 9:30 AM
Subject: Macro Variable Creation using CALL SYMPUT
I am trying to create a series of column titles for a set of reports I am
creating using Call SYMPUT.
I would like the macro names to be the column number (C1-C5) concatinated
with the particular dataset being run.
I thought the command should look like this:
CALL SYMPUT ('C1'||&CLAVAR,C1);
However, that code generates the following messages in the log:
SYMBOLGEN: Macro variable CLAVAR resolves to TOTAL
MPRINT(SRVDTOTAL): CALL SYMPUT ('C1'||TOTAL,C1);
NOTE: Variable TOTAL is uninitialized.
ERROR: Symbolic variable name C1 . must contain only letters,
digits, and underscores.
Any suggestions to correct this would be appreciated.
Delta Airlines, Network Analysis