j*****7 发帖数: 4348 | 1 想用一个parameter variable把%输入到macro variable里面, 下面这段code为什么
不行呢?
%macro text (comments = );
data text;
comm = "&comments";
run;
%mend;
%text(comments = %nrstr(%));
proc print data = text;
run;
试了什么%nrbquote, %superq 也不好用.
Thanks! |
f******u 发帖数: 250 | 2 %macro text (comments = );
%let a=&comments;
data text;
comm = "&a";
run;
%mend;
%text(comments = %nrbquote(%)); |
f******u 发帖数: 250 | 3 this works too.
%macro text (comments = );
data text;
comm = "&comments";
run;
%mend;
%text(comments = %nrbquote(%)); |
j*****7 发帖数: 4348 | 4 Thanks!
转帐完成
转给用户:fengshou,现金(伪币):50,收取手续费:0.50
【在 f******u 的大作中提到】 : this works too. : %macro text (comments = ); : data text; : comm = "&comments"; : run; : %mend; : %text(comments = %nrbquote(%));
|
f******u 发帖数: 250 | 5 thanks, 受之有愧。
【在 j*****7 的大作中提到】 : Thanks! : 转帐完成 : 转给用户:fengshou,现金(伪币):50,收取手续费:0.50
|