nerdexam
SAS_Institute

A00-202 · Question #6

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 D. 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 %SCAN function does not exist.
  • BThe macro variable VAR does not get created properly.
  • CThe %STR() is invalid syntax.
  • DThe %SCAN function has too many arguments.

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    8% (2)
  • C
    4% (1)
  • D
    77% (20)

Community Discussion

No community discussion yet for this question.

Full A00-202 Practice