• Subject: Re: global MONMSG to catch everything
  • From: email@xxxxxxxxxxxxxxxxxxx (James W Kilgore)
  • Date: Tue, 05 Oct 1999 20:27:20 -0700
  • Organization: Progressive Data Systems, Inc.

Whoa, Bob,

I won't even go into the 17 year old testosterone driven arena =:-0, but
IMHO, there is nothing "evil" about trapping "MCH0000" errors.  Or any
other errors.

It's not so much as "what" is trapped, as "how" it's trapped.  If an RPG
program pops up a "invalid array index" error. It's not a problem unless
one does not program in a graceful out.

I agree, only a twit would code MONMSG(CPF0000) RETURN as a first level
error trapping.  Ever since Q38 was published, there have been CL
programs to percolate the error up to the caller.  Maybe it's time to
make something old "new" again?

Bob Crothers wrote:
> 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
| 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

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.