MPRINT(MKTITLE): TITLE "GPLOT of SASUSER.HOUSES";
MPRINT(RUNPLOT): PROC GPLOT DATA=SASUSER.HOUSES;
MPRINT(RUNPLOT): PLOT STYLE*PRICE / HAXIS=0 TO 150000 BY 50000;
MPRINT(RUNPLOT): RUN;
MPRINT(RUNPLOT): QUIT;
Example 2: Directing MPRINT Output to an External File
Adding these statements before the macro call in the previous program sends the
MPRINT output to the file DebugMac when the SAS session ends.
options mfile mprint;
filename mprint 'debugmac';
MPRINTNEST System Option
Specifies whether to display the macro nesting information in the MPRINT output in the SAS log.
Valid in: Configuration file, OPTIONS window, OPTIONS statement, SAS invocation
Category: Macro
PROC OPTIONS
GROUP=
MACRO
Type: System option
Default: NOMPRINTNEST
Syntax
MPRINTNEST | NOMPRINTNEST
Required Arguments
MPRINTNEST
enables the macro nesting information to be displayed in the MPRINT output in the
SAS log.
NOMPRINTNEST
prevents the macro nesting information from being displayed in the MPRINT output
in the SAS log.
Details
MPRINTNEST enables the macro nesting information to be written to the SAS log in
the MPRINT output. The MPRINTNEST output has no effect on the MPRINT output
that is sent to an external file. For more information, see MFILE System Option.
The setting of MPRINTNEST does not imply the setting of MPRINT. You must set both
MPRINT and MPRINTNEST in order for output (with the nesting information) to be
written to the SAS log.
Example: Using MPRINTNEST System Option
The following example uses the MPRINT and MPRINTNEST options:
%macro outer;
data _null_;
MPRINTNEST System Option 377