09-10-2014 03:07 PM
I am new to SAS and I need to know how to limit the number of months to 24.
Every month I upload new data and would like the oldest month to be dropped off.
09-10-2014 04:02 PM
Depends on how the month variables are named. Here is an example that might be helpful.
09-10-2014 03:47 PM
input id date;
format date mmddyy10.;
informat date mmddyy10.;
if INTCK('Month',date,today()) ge 24 then delete;
proc print; run;