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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.