SAS_Institute
A00-212 · Question #209
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 the original program code inside the marco definition to the SAS log
- CIt writes macro execution messages 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
(41 responses)- A5% (2)
- B5% (2)
- C17% (7)
- D73% (30)
Community Discussion
No community discussion yet for this question.