Who can tell me why the answer is B rather than D?
The following SAS program is submitted:
%macro execute;
[_insert_statement_here_]
proc print data=SASUSER.HOUSES;
run;
%end;
%mend execute;
%execute
Which statement completes the program so that the PROC PRINT step executes
on Thursday?
A. if &sysday = Thursday then %do;
B. %if &sysday = Thursday %then %do;
C. %if “&sysday” = Thursday %then %do;
D. %if &sysday = “Thursday” %then %do;
D*********t 发帖数: 5748
2
Differences compared to SAS expressions:
Character operands are not quoted.
Ranges such as 1 <= &x <= 10 behave differently.
The IN operator does not require parentheses.
s********1 发帖数: 54
3
Can you explain more in detail about these four usages? Thank you.
【在 D*********t 的大作中提到】 : Differences compared to SAS expressions: : Character operands are not quoted. : Ranges such as 1 <= &x <= 10 behave differently. : The IN operator does not require parentheses.