%macro add_new_year_in_cal;
%global Path;
%let Path=/dwh_operation/sasprocess/smp_production/prod_smpi2/sasmacro/;
OPTIONS SASAUTOS=("&Path.");
%localizepilottbl;
%include "&Path.update_trigger.sas";
%put &UpdatePilotTblTrigger.;
%if &UpdatePilotTblTrigger. = 'Y' %then
%do;
%include"&Path.copyfilefromreftosmpi2.sas";
%end;
%mend add_new_year_in_cal;
options mprint;
%add_new_year_in_cal;
Can you please format your code for legibility and use a code box? It really helps for reading code.
Have you tried removing the quotes in the comparison? I'm fairly certain that's required in macro coding.
%macro add_new_year_in_cal;
%global Path;
%let Path=/dwh_operation/sasprocess/smp_production/prod_smpi2/sasmacro/;
OPTIONS SASAUTOS=("&Path.");
%localizepilottbl;
%include "&Path.update_trigger.sas";
%put &UpdatePilotTblTrigger.;
%if &UpdatePilotTblTrigger. = Y %then
%do;
%include"&Path.copyfilefromreftosmpi2.sas";
%end;
%mend add_new_year_in_cal;
options mprint;
%add_new_year_in_cal;
If that doesn't work, please post your log from your code after adding the MLOGIC option to your OPTIONS statement.
@alepage wrote:
the function copyfilefromreftosmpi2.sas is not executed even if the updatepilottbltrigger=Y
Navigate AI governance with SAS tools for compliance and ethical AI practices. Try SAS Ai Navigator for free for the first six months.
Follow along as SAS’ Robert Blanchard explains three aspects of autotuning in a deep learning context: globalized search, localized search and an in parallel method using SAS.
Find more tutorials on the SAS Users YouTube channel.