Group: talk.politics.mideast · Group Profile · Search for Apr96 in talk.politics.mideast
Author: RaceWar
Date: Nov 25, 2007 09:00
Instead of two loops, try one loop with some SAS functions to figure out next date for you: 34 %%macro cps(firstym=, lastym=); 35 %%let ym=%%sysfunc(inputn(&firstym,monyy.)); 36 %%do %%until(&ym %%sysfunc(inputn(&lastym,monyy.))); 37 %%put ym= %%sysfunc(putn(&ym,monyy.)) filename=%%sysfunc(putn (&ym,yymmn6.)); 38 %%let ym=%%sysfunc(INTNX(month,&ym,1)); 39 %%end; 40 %%mend
|