Previous Topic: Messages from MSGPROC

Next Topic: User ID Considerations for System Level Procedures

Test MSGPROC

MSGPROC is invoked when you enter OCS mode. MSGPROC processes until the first &MSGREAD statement is encountered. The procedure remains active until terminated by an error (in which case normal message delivery resumes), or until you exit OCS mode. Exiting OCS mode flushes the MSGPROC procedure.

Subsequent reentry to OCS mode invokes the latest copy of the procedure, unless the procedure has been preloaded. If the procedure has been preloaded, you first unload it using the UNLOAD command and LOAD the replacement procedure.

The system is distributed with an MSGPROC example. Before you write your own MSGPROCs, review $MSGPROC in the distribution library.

Define a temporary user ID where $MSGPROC is defined as the required MSGPROC, then log on to this user ID and enter OCS mode to invoke the MSGPROC.

$MSGPROC intercepts VTAM display commands and provides a single-line summary. The procedure extracts information from various lines generated by the VTAM command, analyzes them within the procedure, and generates a response to the operator. You can tailor the example for your VTAM level.