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 (November 1999, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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