hi, Delte extra ....'month' in the following line and check/... rolling_month=put((intnx("month", date_end, 1, "end")), $monname.); This gives....rolling_month ........February... Regards ALLU data date; date="1FEB2013"d; *This is the date of run (regarding data up until month before date of run); date_end=intnx("month", date, -1, "end"); rolling_month=put((intnx("month", date_end, 1, "end")), $monname.); rolling_month_end=put((intnx("month", date_end, -11, "sameday")), $yymmn6.); format date date_end date9.; run; proc print data=date; run;
... View more