SAS_Institute
A00-212 · Question #52
The following SAS program is submitted: %let var = chicago, 1; data a; var = 'new york, 2'; newvar = %scan(&var,2,%str()); run; Which one of the following explains why the program fails to execute?
The correct answer is C. The %SCAN function has too many arguments. See the full explanation below for the reasoning.
Question
The following SAS program is submitted:
%let var = chicago, 1; data a; var = 'new york, 2'; newvar = %scan(&var,2,%str()); run; Which one of the following explains why the program fails to execute?
Options
- AThe %STR() is invalid syntax.
- BThe %SCAN function does not exist.
- CThe %SCAN function has too many arguments.
- DThe macro variable VAR does not get created properly.
How the community answered
(34 responses)- A9% (3)
- B12% (4)
- C74% (25)
- D6% (2)
Community Discussion
No community discussion yet for this question.