Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping 1

Status
Not open for further replies.

Fuzemmo

Programmer
May 16, 2002
52
US
Is it possible to perform "looping" outside of the DATA step? For example, do the following 10 times...

DATA ...
PROC SORT ...
PROC FREQ ...
DATA ...

Just as an example.
 
Use macro code.
Code:
%MACRO loop();
  %do i=1 %to 10;
     data blah;
      ...
  %end;
%MEND loop;

%loop();


Chris
Business Analyst, Code Monkey, Data Wrangler.
SAS Guru.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top