nerdexam
SAS_Institute

A00-212 · Question #46

The following SAS program is submitted: options mprint; %macro test(parm); proc &parm data = sashelp.prdsale; run; %mend; %test(print) What is the result of the MPRINT options?

The correct answer is D. It echoes the text sent to the SAS compiler as a result of macro execution in the SAS log. See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

options mprint; %macro test(parm); proc &parm data = sashelp.prdsale; run; %mend; %test(print) What is the result of the MPRINT options?

Options

  • AIt has no effect in this example.
  • BIt writes macro execution messages to the SAS log.
  • CIt writes the original program code inside the macro definition to the SAS log.
  • DIt echoes the text sent to the SAS compiler as a result of macro execution in the SAS log.

How the community answered

(39 responses)
  • A
    15% (6)
  • B
    5% (2)
  • C
    8% (3)
  • D
    72% (28)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice