我要把一段代码赋值给一个宏变量,应该如何弄。如
%let code=%nrstr(%put ***the ds used is &ds; data &ds;set &ds;run;);
%macro test;
%let ds=temp1;
&code
%mend;
%test;
可我发现报错呀,请高手指导。谢谢。我的本意是让它等效于下面这个:
%macro test;
%let ds=temp1;
%put ***the ds used is &ds;
data &ds;set &ds;run;
%mend;
%test;