17. The following SAS program is submitted:
%let sun=SHINE;
%let shine=MOON;
proc print data=weather(keep=sun shine moon);
sum &&&&sun;
run;
Which one of the following variables is summed in the resulting report?
Correct answer: c
a. sun
b. MOON
c. SHINE
d. None, an ERROR message will be written to the log.
这题答案为什么是C? 谢谢!
f******u 发帖数: 250
2
两个&变一个:
&&&& --- && --- &
p*****V 发帖数: 43
3
谢谢回复。
I found in SAS that
for %let a=b;
%let b=c;
%let c=d;
%let d=e;
%let e=f;
&a=b
&&a=b
&&&a=c
&&&&a=b
&&&&&a=c
&&&&&&a=c
&&&&&&&a=d
&&&&&&&&a=b
&&&&&&&&&a=c
&&&&&&&&&&a=c
&&&&&&&&&&&a=c
&&&&&&&&&&&&a=d
&&&&&&&&&&&&&a=c
&&&&&&&&&&&&&&a=d
&&&&&&&&&&&&&&&a=e
b b c b c c d b c c c d c d e