全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2397 2
2008-08-25
104. The following SAS program is submitted:
proc format;
value score 1 - 50 = 'Fail'
51 - 100 = 'Pass';
run;
proc report data = work.courses nowd;
column exam;
define exam / display format = score.;
run;
The variable EXAM has a value of 50.5.
How will the EXAM variable value be displayed in the REPORT procedure
output?
A. Fail
B. Pass
C. 50.5
D. . (missing numeric value)
Answer: C

这道题是不是在1 - 50 = 'Fail' 51 - 100 = 'Pass'; 有问题? 应该是1-<50 = 'Fail'
51-<100 = 'Pass';? 所以在format并没有执行?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2008-9-18 08:14:00

这里最好用if语句可以完全解决

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2008-9-20 03:06:00

这道题是不是在1 - 50 = 'Fail' 51 - 100 = 'Pass'; 有问题? 应该是1-<50 = 'Fail'
51-<100 = 'Pass';? 所以在format并没有执行?

1 - 50 = 'Fail' means 1, 2, 3, ..., 50 will show up as "Fail". Any fractions, such as 50.5, will just show up as it is.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群