全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2764 4
2012-09-17
第110题,题目如下
The contents of the raw data file EMPLOYEE are listed below:
----|----10---|----20---|----30
Ruth 39 11
Jose 32 22
Sue 30 33
John 40 44
The following SAS program is submitted:
data test;
infile 'employee';
input employee_name $ 1-4;
if employee_name = 'Ruth' the input idnum 10-11;
else input age 7-8;
run;
Which one of the following values does the variable IDNUM contain when the name of the employee is 'Ruth'
A.11
B.22
C.32
D.missing numeric value
答案选的是B,不知道为什么,求助,先谢谢了啊~






二维码

扫码加我 拉你入群

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

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

全部回复
2012-9-17 10:58:56
二维码

扫码加我 拉你入群

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

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

2013-12-20 17:02:25
不知道回复的时间是不是有点儿太不及时了,为了今后能看到这个帖子的同学,还是决定说说。
在理解上面连接中讲到的@和@@的作用后,会明白input employee_name $ 1-4;缺少@。
所以
if employee_name = 'Ruth' the input idnum 10-11;
else input age 7-8;语句不会在‘Ruth’的record中读入10-11,而是继续读入下一个record的10-11,即22。
二维码

扫码加我 拉你入群

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

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

2017-3-30 09:18:24
liulubucm 发表于 2013-12-20 17:02
不知道回复的时间是不是有点儿太不及时了,为了今后能看到这个帖子的同学,还是决定说说。
在理解上面连接 ...
感谢大神 真的是解决了我的困惑 谢谢
二维码

扫码加我 拉你入群

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

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

2017-3-30 09:18:25
liulubucm 发表于 2013-12-20 17:02
不知道回复的时间是不是有点儿太不及时了,为了今后能看到这个帖子的同学,还是决定说说。
在理解上面连接 ...
感谢大神 真的是解决了我的困惑 谢谢
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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