Using the MSG Function
The MSG function can control the display of TSO/E messages. When the MSG function is not used, both error and non-error messages are displayed as an exec runs. These messages can interfere with output, especially when the exec's output is a user interface, such as a panel.
The MSG function can be used only in REXX execs that run in the TSO/E address space.
To prevent the display of TSO/E messages as an exec runs, use the
MSG function followed by the word "OFF" enclosed within parentheses.
status = MSG('OFF') /* status is set to the previous setting of */
/* MSG and sets the current setting to OFF */
To resume the display of TSO/E messages, substitute the word "ON" for "OFF".
To find out if messages will be displayed, issue the MSG function
followed by empty parentheses.
status = MSG() /* status is set to ON or OFF */