A raw data record is listed below:
--------10-------20-------30
son,Travis,
--------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;
infile 'file-specification';
input relation $ firstname $;
run;
B. options dlm = ',';
data family;
infile 'file-specification';
input relation $ firstname $;
run;
data family;
infile 'file-specification';
input relation $ firstname $;
run;
C. data family;
infile 'file-specification' dlm = ',';
input relation $ firstname $;
run;
infile 'file-specification' dlm = ',';
input relation $ firstname $;
run;
D. data family;
infile 'file-specification';
input relation $ firstname $ / dlm = ',';
run;
infile 'file-specification';
input relation $ firstname $ / dlm = ',';
run;
5 comments:
Answer C
Answer is C
data family;
infile 'file-specification' dlm = ',';
input relation $ firstname $;
run;
thinking about b
we can use options statement before the proc print step starts like
options dlm=',';
proc print step
not in datastep
For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html
Post a Comment