× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Steve Richter wrote:
modules have to throw exceptions. that's my rule! ahem.
How?
RPG doesn't have a mechanism to throw exceptions.  At least not the RPG
I work with (which is, by necessity, a few releases back from the
current GA version).
I use the QMNSNDPM api.  It sends and *escape message up the call stack.

I haven't observed that to be an well used technique.  Sending escape
messages in CL is common, but not in RPG.

In RPG I use MONITOR to catch exceptions and QMNSNDPM to throw them. (
actually in practice I throw exceptions a lot more than I catch them.
I worry too many MONITOR blocks will slow the code.down. )

Since RPG doesn't have the native ability to send a message, I think
that MONITOR is pretty much a waste of time.

I agree that if you code the dtaq application properly you will not
have any out of the ordinary problems.

As always, the technique you use should be based on the problem you are
trying to solve ... and regardless of the technique you use, it can
always be coded poorly or well.

david

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.