@yesidgranadosv wrote:
data _null_;
call symputx('Fetch_FIN', put(intnx ('month',today(),0, 'b') + 1 ,yymmddn8.) );
run;
%put Fetch_FIN = &Fetch_FIN.;
result = 20190501
Actually I want to have the result of the current day without needing to add the days (+1...)
Can you describe why if you want "current day" you are messing around with modifying the "month"?. Or do you mean something like "first of the month" instead of "current day"?
Given that today is 16MAY2019 what is your desired output?
Note that the +1 is not needed if you expect to get 20190501
248 data _null_;
249 call symputx('Fetch_FIN', put(intnx ('month',today(),0, 'b') ,yymmddn8.) );
250 run;
NOTE: DATA statement used (Total process time):
real time 0.04 seconds
cpu time 0.01 seconds
251
252 %put Fetch_FIN = &Fetch_FIN.;
Fetch_FIN = 20190501
Or is this what you want:
260 data _null_;
261 call symputx('Fetch_FIN', put(today() ,yymmddn8.) );
262 run;
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
263
264 %put Fetch_FIN = &Fetch_FIN.;
Fetch_FIN = 20190516