Hey all,
I am trying to call a different include statement inside of a macro, but having the include different based on if a different macro is selected
ex:
%macro DDL;
%if &upd = 2 or &upd = 4 or &upd = 5 %then %do;
%include "/test/&csv..sas";
%end;
%else %do;
%include "/test/&fn..sas";
%end;
%mend DDL;
%DDL
Inside each of those is a different macro that needs to be used in a proc sql statement, but when I put this logic in my program is not reading the macor &Query
But when I had it just this it would work: %include "/test/&fn..sas";
Not sure it's including it from the macro.. any thoughts?
Thanks