ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 112

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. options dlm = ',';
data family;
infile 'file-specification';
input relation $ firstname $;
run;
C. data family;
infile 'file-specification' dlm = ',';
input relation $ firstname $;
run;
D. data family;
infile 'file-specification';
input relation $ firstname $ / dlm = ',';
run;
Click Comment link to get answer

10 comments: