hi, i have the below dates in months. i want to insert some more dates after the last date (30/04/2021). I mean i want to add dates till 31/12/2026 but not sure how i can do it. Please note that i want the last day of each month. for example, 30/05/2021, 31/06/2021 etc.
Do you have strings looking like dates, or sas dates?
Maybe something like (code is untested):
data want;
set have end=startLoop;
output;
if startLoop then do;
do until (date = '31Dec2026'd);
date = intnx('month', date, 1, 'end');
output;
end;
run;
Do you have strings looking like dates, or sas dates?
Maybe something like (code is untested):
data want;
set have end=startLoop;
output;
if startLoop then do;
do until (date = '31Dec2026'd);
date = intnx('month', date, 1, 'end');
output;
end;
run;
SAS Innovate 2025: Register Now
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!