Experts,
I am writing a CL program, and I wanted to use MONMSG on where the called program is error out.
ON my CL, I call RPG program, and after calling RPG program, I have a MONMSG.
RPG can blew for many reasons.. example CPF0000, RNQ0000, RNX, MCH, I don't what to check for all these codes. even though I can do multiple message ID with generic a single MONMSG.
I can do a RCVMSG.. but before even using RCVMSG, I may need to know first whether the program error out or not..
OR
Is that possible to have one MONITOR for a whole RPG?.
OR
Is PSSR is better and do not handle this in CL?
What is the better way to handle unknown errors in RPG from a CL?
Thanks
Stillin400
I am writing a CL program, and I wanted to use MONMSG on where the called program is error out.
ON my CL, I call RPG program, and after calling RPG program, I have a MONMSG.
RPG can blew for many reasons.. example CPF0000, RNQ0000, RNX, MCH, I don't what to check for all these codes. even though I can do multiple message ID with generic a single MONMSG.
I can do a RCVMSG.. but before even using RCVMSG, I may need to know first whether the program error out or not..
OR
Is that possible to have one MONITOR for a whole RPG?.
OR
Is PSSR is better and do not handle this in CL?
What is the better way to handle unknown errors in RPG from a CL?
Thanks
Stillin400
Comment