SAS_Institute
A00-211 · Question #133
Given the raw data record DEPT: ----|----10---|----20---|----30 Printing 750 The following SAS program is submitted: data bonus; infile dept'; inputdept$ 1-11 number 13- 15; <insert statement here>…
The correct answer is D. department = trim(dept) put(number,3.). See the full explanation below for the reasoning.
Question
Given the raw data record DEPT:
----|----10---|----20---|----30 Printing 750 The following SAS program is submitted:
data bonus; infile dept'; inputdept$ 1-11 number 13- 15; <insert statement here> run; Which SAS statement completes the program and results in a value of Printing750' for the DEPARTMENT variable?
Options
- Adepartment = dept II number;
- Bdepartment = left(dept) II number;
- Cdepartment = trim(dept) number;
- Ddepartment = trim(dept) put(number,3.);
How the community answered
(28 responses)- A7% (2)
- B4% (1)
- C18% (5)
- D71% (20)
Community Discussion
No community discussion yet for this question.