楼主: crackman
1871 2

[原创博文] 跟crackman做sas adv认证试题(29) [推广有奖]

院士

83%

还不是VIP/贵宾

-

威望
6
论坛币
91908 个
通用积分
23.3245
学术水平
424 点
热心指数
505 点
信用等级
256 点
经验
113002 点
帖子
2948
精华
0
在线时间
2529 小时
注册时间
2007-4-26
最后登录
2024-4-23

初级热心勋章 中级热心勋章 初级学术勋章 初级信用勋章

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
http://crackman.net/?p=648
二维码

扫码加我 拉你入群

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

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

关键词:crackman Ackman CRACK CRA Man 认证

沙发
yuan_wang 发表于 2018-6-30 12:24:13 |只看作者 |坛友微信交流群
请问 SAS Base 70题库中 的  第29题,到底是 选 A 还是 B?题目复制如下

29.The following SAS program is sumbitted:
 
  

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


使用道具

藤椅
yuan_wang 发表于 2018-6-30 12:42:12 |只看作者 |坛友微信交流群
The answer is B.

Solution:
>> The first reading is
input @1 Company $20. @25 State $2. @;


>> The second reading is
input NumEmployees;
  

Explanations:
For the first reading, the single trailing @ option holds a raw data record in the input buffer until SAS
* executes an INPUT statement with no trailing @, or
* reaches the bottom of the DATA step.

使用道具

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

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 11:40