×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




In CL, one must never do the 'ignore everything' global MONMSG that you decry. But if, as has been said, you put a GOTO to an error handler in there, then you have a way to deal with unexpected errors.

In combination with MONMSG CPF0000 EXEC(GOTO ERRORHNDLR) one puts specific MONMSG commands where needed. This is for expected things. This would be, I assume, the basic approach you use in RPG. *PSSR being like the global MONMSG - albeit maybe a full-source MONITOR-ENDMON, too. Then individual error handling within the body of the code.

eh?
Vern

rob@xxxxxxxxx wrote:
I try to throw a lot more error handling into my programs. For example
Select; When mypsds.excp_msg<>*blanks; // Alert the troops! eSubject='Unable to delete journal receiver ' + %trim(parm.library) +
'/' + %trim(parm.journal); eMessage=eSubject; CheckPSDS=fndsigmsg(mypsds); excphdlr01(eSubject: eMessage: CheckPSDS); EndSl;
But if you're looking for some drastic trap to allow you to start doing the granular there are more experienced minds than mine on that.

Perhaps a search on error handling?



Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

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