MACRO_MSG—Set or Query the Macro Message switch

The MACRO_MSG assignment statement sets or retrieves the value of the macro_msg switch, which controls whether macro processing delivers ISPF messages to the macro.

Syntax

Read syntax diagramSkip visual syntax diagramISREDIT ( varname)  = MACRO_MSG
Read syntax diagramSkip visual syntax diagramISREDITMACRO_MSG =  ONOFF
varname
The name of a variable containing the setting of MACRO_MSG.
ON
ISPF messages generated by macro commands are formatted.
OFF
ISPF messages are not formatted.

Description

The MACRO_MSG assignment statement sets a switch for subsequent macro processing. When set ON, any message that is generated by a macro command is formatted and made available in variables in ZEDILMSG, ZEDISMSG, and ZEDMSGNO.

This is a diagnostic switch and should only be used to extract messages as required. Macros that perform operations on many edit lines may experience a performance degradation if this switch is ON.

Return codes

0
Normal completion
20
Severe error

Examples

To set macro_MSG:
ISREDIT MACRO_MSG = ON