sas - macro references execution in call execute -
sas documentation says macro references in call execute executed immediately. code exemplify it?
%let var = abc; data _null_; call execute ('&var'); run;
sort of. here more complete example using value of macro variable actual executable sas code.
data _null_; call symputx('var','data;run;'); run; %put var= %superq(var); data _null_; call execute ('&var'); run;
you can see in sas log code call execute() pushed onto stack run value of macro variable though single quotes prevent macro variable expanding during data _null_ step using call execute() statement.
note: call execute generated line. 1 + data;run;
Comments
Post a Comment