SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 1166|回复: 0
打印 上一主题 下一主题

about %if

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2012-7-16 11:19:27 | 只看该作者

about %if

Who can tell me why the answer is B rather than D? I think it should be D because we need to use  “Thursday”, doesn't it?

Thanks!!!!
############################################
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;
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-5-4 01:15 , Processed in 0.319125 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表