y****1 发帖数: 400 | 1 1. 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.
我在网上查了call symputx routine的用法,关于L的解释是:
L specifies that the macro variable is stored in the most local symbol
table that exists, which might be the global symbol table. | s*******2 发帖数: 791 | | y***t 发帖数: 644 | 3 第一题date在macro two里的local value是12SEP2008。
第二题不知道 |
|