楼主: crackman
2188 2

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

已卖:401份资源

院士

83%

还不是VIP/贵宾

-

威望
6
论坛币
91928 个
通用积分
23.5045
学术水平
424 点
热心指数
505 点
信用等级
256 点
经验
112978 点
帖子
2940
精华
0
在线时间
2532 小时
注册时间
2007-4-26
最后登录
2025-6-25

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

楼主
crackman 发表于 2010-11-24 14:19:49 |AI写论文

+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
拉您进交流群
GMT+8, 2026-2-11 01:24