|
I think monitor works quite nicely for divide by zero, etc. Actually I think the Monitor reads better than MONMSG. Granted, having some control over throwing your own messages would be nice. But, I'd rather they spent more time making IFS access easier. Rob Berendt -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." Benjamin Franklin "Carel Teijgeler" <coteijgeler@xxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx 04/07/2003 04:22 PM Please respond to RPG programming on the AS400 / iSeries To: rpg400-l@xxxxxxxxxxxx cc: Fax to: Subject: Monitor messages (was RE: Hans) Has there ever been a good error trapping mechanism in RPG? I do not think so. *PSSR, the error extension on some operations, checking the status, the error handlers (CEE API's), never got on in some way. You could use Receive Programme Mesage and/or Send Programme Message API's. But how do you handle decimal data errors, divide by zero and more of those nasty bugs. I think this should have a better method to deal with: a "simple" recovery method, in which you could correct the variable in error and return to the statement in error to continue. I have looked at some of those alternatives but not one of them can deal with the mentioned bugs properly. Just my thoughts. I may be mistaken, but then i like to hear how others have solved error trapping in RPG properly. Regards, Carel Teijgeler *********** REPLY SEPARATOR *********** On 7-4-03 at 14:46 Bartell, Aaron L. (TC) wrote: >>Well you can throw your own error with the message APIs but it isn't the >same as CL's MONMSG. > >Will Monitor and On-Error catch those errors with the message API's? _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.