全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3128 7
2015-09-09
这是123题的第15题
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

这是70题的第29题
data WORK.INFO;
      infile 'DATAFILE.TXT';
      input @1 Company $20. @25 State $2. @;
      if State=' ' then input @30 Year;
      else input @30 City Year;
      input NumEmployees;
   run;

How many raw data records are read during each iteration of the DATA step?

      A. 1
      B. 2
      C. 3
      D. 4

请问这两题区别在哪儿?为什么70题里的答案是2个,123题里的答案只有1个?谢谢

二维码

扫码加我 拉你入群

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

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

全部回复
2015-9-9 05:43:03
你说反了吧?
二维码

扫码加我 拉你入群

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

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

2015-9-9 06:37:27
teqel 发表于 2015-9-9 05:43
你说反了吧?
没说反呀。答案就是这样的。题目也没弄错呀
二维码

扫码加我 拉你入群

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

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

2015-9-9 06:42:13
the @ option holds a raw data record in the input buffer until sas executes an input statement with no @, or reaches the bottom of the data step.
二维码

扫码加我 拉你入群

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

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

2015-9-9 07:48:42
傲娇的店小二 发表于 2015-9-9 06:42
the @ option holds a raw data record in the input buffer until sas executes an input statement with  ...
谢谢。这个我明白。我不明白的是,123题里边的15题input尾部也有@,但为什么答案是1。这两道题区别在哪儿?为什么一个1,一个2
二维码

扫码加我 拉你入群

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

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

2015-9-9 09:04:58
一共input了三次,其中一题前两个input最后都有@,另一题只有第一个input最后带@
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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