%macro MyMacro(n=1,base=work.output); %put info: &=n; *process; %put remove this line with no ending semicolon proc append data = &syslast base = &base; run; %mend; %macro do_this(upperbound=60; %do i = 1 %to &upperbound; %put My_macro(n = &i) %end; %mend; %do_this(upperbound = 3) for loops with dates see this page http://www.sascommunity.org/wiki/Macro_Loops_with_Dates Ron Fehd macro loop maven
... View more