SAS_Institute
A00-211 · Question #6
Given the raw data file EMPLOYEE: ----I----1 0---I----20---I----30 Ruth 39 11 Jose 32 22 Sue 30 33 John 40 44 The following SAS program is submitted: data test; infile employee'; input employee_name…
The correct answer is B. 22. See the full explanation below for the reasoning.
Question
Given the raw data file EMPLOYEE:
----I----1 0---I----20---I----30 Ruth 39 11 Jose 32 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 = Ruth' then input idnum 10-11; else input age 7-8; run; What value does the variable IDNUM contain when the name of the employee is "Ruth"?
Options
- A11
- B22
- C33
- D(missing numeric value)
How the community answered
(58 responses)- A16% (9)
- B76% (44)
- C3% (2)
- D5% (3)
Community Discussion
No community discussion yet for this question.