I'd like to call a macro 200 times and increment the parameter with each call, but I don't want to repeat each call 200 times. Is there a %do %loop that can provide what I need? %macro Weeks(week=); proc sort data=in.test1 out=test1_W&week. (keep=subject); by subject; where folder="WEEK&week."; run; run; %mend; %Weeks(Week=6); *increment by 6 for each macro call up to 200; %Weeks(Week=12); %Weeks(Week=18); . . . %Weeks(Week=200);
... View more