Previous Topic: Message Filtering: Unsolicited Messages

Next Topic: Messages from PPOPROC

Design a PPOPROC Procedure

A PPOPROC procedure should be written as a closed loop. When invoked, it processes until the first &PPOREAD statement is detected and then suspends processing until a message arrives.

As each message arrives, the procedure logic should branch to an appropriate processing point for that message. After processing the message or a group of associated messages, the procedure should then return to the initial &PPOREAD where processing is suspended once again.

PPOPROC should be designed to START worker processes to analyze any serious events reported and initiate recovery procedures so the main PPOPROC process remains free to continue monitoring the unsolicited VTAM message flow.

Important! Be particularly careful when using verbs that are dependent on events outside PPOPROC control (such as &INTCMD followed by &INTREAD) as these can tie up PPOPROC processing and result in long PPO message queues.

If PPOPROC does end, an NRD message is sent to all monitor status OCS operators, and normal PPO processing resumes.