Nov 3, 2006 #1 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.
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.
Nov 7, 2006 1 #2 ChrisW75 Programmer Dec 22, 2003 727 AU 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. Upvote 0 Downvote
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.