This command monitors the messages send to the program message QUEUE for the conditions specified in the command. There are TWO levels of MONMSG COMMANDS.
Program level is specified IMMEDIATELY following the last declares command in your CL program. You can use as many as 100 program level MONMSG commands.
Command level immediately follows a CL command. You can use as many as 100 command level MONMSG commands for a single command.
If you MONITOR a message by giving message ID as CPF0000 then any error will come to MONMSG routine.