You could increment the current date by one in a data step, that would always put you to the previous month end. %LET TIMESTAMP=29NOV2011; DATA _NULL_; SASDate=INPUT("&TIMESTAMP",date9.)+1; SASDate1=INTNX('MONTH',SASDate,-1,'END'); CALL SYMPUT("usage_timestamp",PUT(SASDate1, date9.)); RUN; DATA FILE_&usage_timestamp; PreviousMonthEnd="&usage_timestamp"; RUN;
... View more