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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -