SAS中文论坛

标题: 问一base 题 [打印本页]

作者: shiyiming    时间: 2012-4-26 07:23
标题: 问一base 题
问一Base题:

SAS Certified Base Programmer 123 Questions (9)
A raw data record is listed below:
----|----10---|----20---|----30
son,Travis,
The following output is desired:
relation firstname
son      Travis
Which one of the following SAS programs reads the data correctly?
A.
data family / dlm = ',';
    infile 'file-specification';
    input relation $ firstname $;
run;
B.
option dlm = ',';
data family;
    infile 'file-specification';
    input relation $ firstname $;
run;
C.
data family;
    infile 'file-specification' option dlm = ',';
    input relation $ firstname $;
run;
D.
data family;
    infile 'file-specification';
    input relation $ firstname $ / dlm = ',';
run;

正确答案是C, 但好像不用 “opions”这个词,。。然后B选项那里不行啊!!
<!-- m --><a class="postlink" href="http://sas.1or9.com/archives/sas-certified-base-programmer-123-questions-9/">http://sas.1or9.com/archives/sas-certif ... estions-9/</a><!-- m -->
作者: shiyiming    时间: 2012-5-3 04:45
标题: Re: 问一base 题
他的問題寫錯了. C選項應該是:

C.
data family;
[b:2whngmdq]infile 'file-specification' dlm = ',';[/b:2whngmdq]
input relation $ firstname $;
run;

建議去下載pdf版的123Q. 我發覺你所看的那網頁經常有錯, 我讀SAS Base時亦發現他們有其他錯誤!




欢迎光临 SAS中文论坛 (http://www.mysas.net/forum/) Powered by Discuz! X3.2