• Subject: RE: global MONMSG to catch everything
  • From: Bob Crothers <bob@xxxxxxxxxxxxxx>
  • Date: Tue, 5 Oct 1999 14:30:27 -0500
  • Organization: Cornerstone Communications, LLC

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:dbale@genfast.com]
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: 
david@midrange.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: david@midrange.com
+---

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact [javascript protected email address].