Date: Sun, 21 Nov 1999 10:36:29 +0000
Reply-To: roland.rashleigh-berry@virgin.net
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Roland <roland.rashleigh-berry@VIRGIN.NET>
Organization: N/A
Subject: Re: Define a list of global varibles in a simple way
Content-Type: text/plain; charset=us-ascii
Eden Don wrote:
>
> Dear Sas-lers,
>
> One more question.
>
> I am to define about 300 global variables. But apparently it is too
> stupid to define them like this,
> %global a1 a2 a3 a4 a5 a6 a7......a300;
>
> Are there any simple ways? Or SAS supports array in macros? If so, it
> will be easier.
>
> I know SAS experts always have good ideas. Could you show me the rope?
>
> TIA.
%do i=1 to 300;
%global a&i;
%end;
Hope that helps,
Roland
|