全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2105 2
2010-11-24
二维码

扫码加我 拉你入群

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

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

全部回复
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


二维码

扫码加我 拉你入群

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

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

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.
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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