Date: Mon, 17 Feb 1997 17:18:06 -0600
Reply-To: Thomas Kalfas <kalfast@PPRD.ABBOTT.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Thomas Kalfas <kalfast@PPRD.ABBOTT.COM>
Subject: Re: help with macro variable
In-Reply-To: Tim Pi <fmrco!timpi@uunet.uu.net> "help with macro variable" (Feb
17, 5:40pm)
Content-Type: text/plain; charset=us-ascii
Tim,
The macro is resolving; however, it's right aligned. So, you'll have to
use the %left() macro function to put it where you want it:
e.g. retain gr1-gr%left(&ngroup);
Tom
On Feb 17, 5:40pm, Tim Pi wrote:
> Subject: help with macro variable
> Hi SAS users,
>
> I could not find any problems. Please help.
>
> *****
> data _null_;
> set tmp;
> call symput('ngroup',group);
>
> data all;
> retain gr1-gr&ngroup;
> set original;
> .....
>
> ******
>
> ERROR: Missing numeric suffix on a numbered variable list (GR1-GR).
>
> *******
>
> Thanks!
>
> Tim Pi
>-- End of excerpt from Tim Pi
--
Thomas Kalfas
System Developer
Abbott Laboratories
E-mail: kalfast@pprd.abbott.com
Phone: (847) 938-8101
Fax: (847) 935-1320
|