MEXPAND and MPRINT Subcommands (SET command)

MEXPAND and MPRINT control whether macros are expanded and whether the expanded macros are displayed. For more information about macros, see the DEFINE command and Using the Macro Facility .

The specifications for MEXPAND are:

ON. Expand macros. This setting is the default.

OFF. Do not expand macros. The command line that calls the macro is treated like any other command line. If the macro call is a command, it will be executed; otherwise, it will trigger an error message.

The specifications for MPRINT are:

ON. Include expanded macro commands in the output.

OFF. Exclude expanded macro commands from the output. This is the default.

  • MPRINT is effective only when MEXPAND is ON and is independent of the PRINTBACK subcommand.