L******n 发帖数: 6 | 1 75. The following SAS program is submitted:
%macro one(input);
%two;
%mend;
%macro two;
data _null_;
call symputx ('date','12SEP2008','L');
run;
%put the value is &date;
%mend;
%let date=31DEC1006;
%one(&date)
What is the result when the %put statement executes?
答案是12SEP2008 retrieved from the local symbol table for the TWO macro.
为什么不是12SEP2008 retrieved from the local symbol table for the ONE macro
?我的理解macro two 并没有local symbol table啊。
谢谢。 | g*******t 发帖数: 124 | 2 你可以查一下call symputx, L表示是local
【在 L******n 的大作中提到】 : 75. The following SAS program is submitted: : %macro one(input); : %two; : %mend; : %macro two; : data _null_; : call symputx ('date','12SEP2008','L'); : run; : %put the value is &date; : %mend;
|
|