http://crackman.net/?p=644
The following SAS program is submitted:
%macro CHECK(Num=4);
%let Result=%eval(&Num gt 5);
%put Result is &result;
%mend;
%check(Num=10)
What is written to the SAS log?
A.
Result is 0
B.
Result is 1
C.
Result is 10 gt 5
D.
Result is true
答案是:B。
这里主要是输出表达式的结果
如果&Num gt 5为真,那么就是1,假就是0。
大家可以试一下把5改成5.1,看看结果的差别?为什么会有这个差别。