SAS_Institute
A00-201 · Question #64
The contents of the raw data file EMPLOYEE are listed below: |----1----|----10----|----20----|----30 Ruth 39 11 Joe 35 22 Sue 30 33 John 40 44 The following SAS program is submitted: data test…
The correct answer is C. 46. See the full explanation below for the reasoning.
Question
The contents of the raw data file EMPLOYEE are listed below:
|----1----|----10----|----20----|----30
Ruth 39 11
Joe 35 22
Sue 30 33
John 40 44
The following SAS program is submitted:
data test;
infile 'employee';
input employee_name $ 1-4;
if employee_name = 'Sue' then input age 7-8;
else input idnum 10-11;
run;
Which one of the following values does the variable AGE contain when the name of the employee is "Sue"?
Options
- A30
- B33
- C46
- D(missing numeric value)
How the community answered
(51 responses)- A4% (2)
- B20% (10)
- C71% (36)
- D6% (3)
Community Discussion
No community discussion yet for this question.