Something like this:
%let override_date = %sysfunc(mdy(1, 1, 2021));
%let today = %sysfunc(coalescec(&override_date., %sysfunc(today())));
%put &today;
%let override_date =;
%let today = %sysfunc(coalescec(&override_date., %sysfunc(today())));
%put &today;
@Rachie wrote:
Hi there
I have a batch job that I need to re-run which uses the Today() function throughout the code. I appreciate that I can go and change these references and also for future use adapt the program so the Today() is used once at the start of the program to create a macro variable that is referenced in the rest of the code.
However, is it also possible to force the Today() to be a specific date value within a SAS session instead of defaulting to todays date?
Thank you
... View more