Is there a simple method for catching escape messages that occur from
user written commands?
MONMSG CPF0000 doesn't seem to work in this case.
For example: I can code a cl that blows up with an escape message, wrap a command around it, then execute that command from another cl program. MONMSG CPF0000 following execution of the command does not catch the error. The job throws an operator escape message in the original cl program, before returning to the cl that executed the command.
There's probably a way to code the original cl program to percolate the error up, but having to put code in every cl program for something like this seems inefficient too me.
user written commands?
MONMSG CPF0000 doesn't seem to work in this case.
For example: I can code a cl that blows up with an escape message, wrap a command around it, then execute that command from another cl program. MONMSG CPF0000 following execution of the command does not catch the error. The job throws an operator escape message in the original cl program, before returning to the cl that executed the command.
There's probably a way to code the original cl program to percolate the error up, but having to put code in every cl program for something like this seems inefficient too me.
Comment