A raw data record is listed below:
----|----10---|----20---|----30
Printing 750
The following SAS program is submitted:
data bonus;
infile 'file-specification';
input dept $ 1 - 11 number 13 - 15;
<insert code here>
run;
Which one of the following SAS statements completes the program and results in a value of
'Printing750' for the DEPARTMENT variable?
A. department = trim(dept) || put(number,3.);
B. department = dept || input(number,3.);
C. department = input(dept,11.) || input(number,3.);
D. department = trim(dept) || number;
----|----10---|----20---|----30
Printing 750
The following SAS program is submitted:
data bonus;
infile 'file-specification';
input dept $ 1 - 11 number 13 - 15;
<insert code here>
run;
Which one of the following SAS statements completes the program and results in a value of
'Printing750' for the DEPARTMENT variable?
A. department = trim(dept) || put(number,3.);
B. department = dept || input(number,3.);
C. department = input(dept,11.) || input(number,3.);
D. department = trim(dept) || number;
No comments:
Post a Comment