Hello,
So I have a code that contains a macro for a date to always choose the current month. However the code uses a file that gets updated quarterly so that means unless I change the date manually it wont find the latest date file. I think a do loop macro can help? Any ideas?
Thank you!
%macro wrapper;
%if &pdefadjrun=1 %then %do;
%if %sysfunc(exist( file_name_&ReportDateYMD. ))^=1
%then %do;
%put NOTE: file_name_&ReportDateYMD. dataset does not exist;
%end;
%else %if %sysfunc(exist(file_name_&ReportDateYMD. ))=1
%then %do;