20190101
20200101
next year
data _null_;
call symputx('Fetch_FIN', put(intnx ('month',today(),0, 'b') + 1 ,yymmddn8.) );
run;
%put Fetch_FIN = &Fetch_FIN.;
Please clarify what you are trying to do.
Your text talks about YEAR but your code is using MONTH intervals instead or YEAR intervals.
Please clarify what you are trying to do
Having a macro variable with value 20190101 is rarely useful.
I don't fully understand what you're asking for. May be below is enough to give you the pointers you need.
data _null_;
do i=-3 to 3;
dt=intnx('year',today(),i,'b');
put dt yymmddn8.;
end;
stop;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.