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 (June 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 11 Jun 2002 13:26:03 -0400
Reply-To:   Edney.Shawn@EPAMAIL.EPA.GOV
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Edney.Shawn@EPAMAIL.EPA.GOV
Subject:   Re: For Loop: %For. Does it exist?
Content-type:   text/plain; charset=us-ascii

Jess, You can simply put your calls in a macro. An example would be:

%macro test; %do i=1 %to 8; %macro_name(&i); %end; %mend test; % test;

Shawn Edney

Analyst/Programmer Dyncorp 79 T.W. Alexander Drive Bldg. 4201 Suite 201 Research Triangle Park, NC 27709

(919) 558-8782 ext 216 fax 558-8788 edney.shawn@epa.gov

"Balint, Jess" <JBalint@ALLDATA. To: SAS-L@LISTSERV.UGA.EDU NET> cc: Sent by: "SAS(r) Subject: For Loop: %For. Does it exist? Discussion" <SAS-L@LISTSERV.U GA.EDU>

06/11/2002 01:00 PM Please respond to "Balint, Jess"

Hello SAS-L.

I am attempting to run a macro eight times. The code I have is something like this:

%macro(1); %macro(2); %macro(3); %macro(4); %macro(5); %macro(6); %macro(7); %macro(8);

However, I wish to use a loop to do this. SAS said %do is not valid in open code. Is this possible. Thank you.

~Jess


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