Dan, CPF0000 will catch them all. MCH, SQL, RPG, etc messages if not caught (monmsg'd) will cause a CPF9999 message..and that will get caught by the CPF0000. BUT PLEASE BE CAREFULL! What you are talking about doing is VERY dangerous! And unfortunately, the shops that have the biggest problems with unhandled escape messages are then ones that SHOULD NOT USE THIS TECHNIQUE! This is because if you can't trust your programmers (or vendor) to produce software that runs clean, how can you trust them to SAFELY implement something like a global MONMSG CPF0000???? Kind of like thinking that giving your 17yr old boy a condom will protect him from AIDS & Paternity suits. Knowing how to do something safely is not the same as doing something safely! Bob -----Original Message----- From: Dan Bale [SMTP:firstname.lastname@example.org] Sent: Tuesday, October 05, 1999 10:35 AM To: MIDRANGE-L@midrange.com Subject: RE: global MONMSG to catch everything Bob, Barbara, thanks for your responses! Bob, good point about RPG inquiry messages. Is there a way to trap those in the CL program? RPG0000, RPX0000? Or do you have to trap it in the RPG program? Fortunately, there's no RPG program involved in this case. However, I _am_ using SQLSTM (Execute SQL Statement, a utility from News400). Is there an SQL0000 message that I can use? Or will CPF0000 catch these as well? ___________________________ Original Message ___________________________ Dan, CPF0000 is the only one you need. But, it will not catch inquiry messages from inside an RPG program. Such as divide by zero, array index problems, etc. Bob +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: email@example.com +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.