× 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.



On 7/10/06, David Gibbs <david@xxxxxxxxxxxx> wrote:
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.

> If you cant throw exceptions then you are not modular and you are
> going to have a terrible time debugging and maintaining your
> application.

I write very modular code ... but never throw an exception ... exception
throwing is not normal in RPG, so it shouldn't be done except in
extraordinary situations.

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. )

> All the clients are sending a flat 80 characters that can have a
> number of formats.

Who said?  Formats are nothing but a contract between the sender and
receiver.  If you write your client & server properly, and a multiple
formats are required, the server will work out the data format on it's own.

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

-Steve

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.