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)- A15% (6)
- B5% (2)
- C8% (3)
- D72% (28)
Community Discussion
No community discussion yet for this question.