%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;

|
楼主: edwardzxf
|
1886
1
把一段代码赋值给一个宏变量 |
|
已卖:32份资源 讲师 26%
-
|
| ||
|
|
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


