楼主: Huallage
3160 7

麻烦大家帮我看看sas base 70题的29和123题的15题 [推广有奖]

  • 0关注
  • 1粉丝

大专生

30%

还不是VIP/贵宾

-

威望
0
论坛币
70 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
15740 点
帖子
31
精华
0
在线时间
39 小时
注册时间
2009-9-2
最后登录
2016-3-6

楼主
Huallage 发表于 2015-9-9 03:43:25 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
这是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个?谢谢

二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base Data step iteration Diagnosis execution following children relative records

沙发
teqel 发表于 2015-9-9 05:43:03 来自手机
你说反了吧?

藤椅
Huallage 发表于 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.

报纸
Huallage 发表于 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

地板
teqel 发表于 2015-9-9 09:04:58
一共input了三次,其中一题前两个input最后都有@,另一题只有第一个input最后带@

7
傲娇的店小二 学生认证  发表于 2015-9-9 09:18:21
Huallage 发表于 2015-9-9 07:48
谢谢。这个我明白。我不明白的是,123题里边的15题input尾部也有@,但为什么答案是1。这两道题区别在哪儿 ...
123那个就是说@ hold到了最后,到了data step的结尾。而另外一个不是啊

8
Huallage 发表于 2015-9-9 23:38:09
谢谢ls的解答!

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 00:54