SAS_Institute
A00-211 · Question #191
The following SAS program is submitted: data work.test; array agents{4} $ 12 sales1 - sales4; run; Which one of the following represents the variables that are contained in the output data set?
The correct answer is A. SALES1, SALES2, SALES3, SALES4. See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
data work.test; array agents{4} $ 12 sales1 - sales4; run; Which one of the following represents the variables that are contained in the output data set?
Options
- ASALES1, SALES2, SALES3, SALES4
- BAGENTS1, AGENTS2, AGENTS3, AGENTS4
- CNone, the DATA step fails because the ARRAY statement can reference only numeric data.
- DNone, the DATA step fails because the ARRAY statement can reference only pre-existing variables.
How the community answered
(21 responses)- A71% (15)
- B5% (1)
- C14% (3)
- D10% (2)
Community Discussion
No community discussion yet for this question.