SAS中文论坛
标题:
Macro 变量调用问题
[打印本页]
作者:
shiyiming
时间:
2013-12-5 16:54
标题:
Macro 变量调用问题
data _null_;
x='the answer is "yes"';
call symputx('test',%nrstr(x));
run;
ods listing close;
ods noresults;
ods tagsets.excelxp
file="c:/test.xls"
style=meadow
options (
sheet_name = "test");
title1 "purpose: &test";
proc print data=tmp; run;
运行上面的程序会有错误,应该怎么修改呢?
作者:
shiyiming
时间:
2013-12-6 09:50
标题:
Re: Macro 变量调用问题
[code:1b40f9xf]data _null_;
x='the answer is "yes"';
call symputx('test',x);
run;
ods listing close;
ods noresults;
ods tagsets.excelxp
file="c:/test.xls"
style=meadow
options (
sheet_name = "test");
title1 "purpose: %superq(test)";
proc print data=tmp; run;[/code:1b40f9xf]
作者:
shiyiming
时间:
2013-12-6 20:09
标题:
Re: Macro 变量调用问题
[quote="hopewell":22v9j3m9][code:22v9j3m9]data _null_;
x='the answer is "yes"';
call symputx('test',x);
run;
ods listing close;
ods noresults;
ods tagsets.excelxp
file="c:/test.xls"
style=meadow
options (
sheet_name = "test");
title1 "purpose: %superq(test)";
proc print data=tmp; run;[/code:22v9j3m9][/quote:22v9j3m9]
后来用%bquote解决了
%superq 和 %bquote 有什么区别呢?
欢迎光临 SAS中文论坛 (http://www.mysas.net/forum/)
Powered by Discuz! X3.2