全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1360 1
2012-08-21
The following SAS program is submitted:
data numrecords;
infile 'file-specification';
input @1 patient $15.
relative $ 16-26 @;
if relative = 'children' then
input @54 diagnosis $15. @;
else if relative = 'parents' then
input @28 doctor $15.
clinic $ 44-53
@54 diagnosis $15. @;
input age;
run;
How many raw data records are read during each iteration of the DATA step
during execution?
A. 1
B. 2
C. 3
D. 4
Answer: A
问题我也没太明白,什么意思?
二维码

扫码加我 拉你入群

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

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

全部回复
2012-8-22 07:34:36
在第1-15列读入patient, 16-26列读入relative, 根据relative的值不同,做不同的读入。
当值为children时,在54列读入diagnosis,
当值为parents时,在28列读入doctor,44-53 列读入clinic,54 列读入diagnosis。
最后读入 age.
整个input过程,未出现/,#换行符,只读一行。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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