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



Martin,

I suggest you download and study this excellent Redbook:

    http://www.redbooks.ibm.com/abstracts/redp4321.html?Open

You can also post sample code showing your RPGLE program that gets the error, by uploading it at http://code.midrange.com ; and then paste the generated link in your e-mail to the list, because most attachments are "stripped" by the list servers.  (Just a "heads-up"...)

Hope that helps,

Mark S. Waterbury

On Thursday, April 23, 2020, 10:44:33 AM EDT, Martin Neugebauer via RPG400-L <rpg400-l@xxxxxxxxxxxxxxxxxx> wrote:

Hi everybody.
In my RPGLE programs i use a monitor group around my code to handle *PROGRAM type errors, (e.g. divide-by-zero).
I do not want to handle *FILE errors (at this point), so i can not use ON-ERROR *ALL.
Now i discovered that MCH3401 (can not resolve to object) on a dynamic program call can not be trapped by MONITOR .. on-error *program?!
Note that MCH3401 (by the name of it) is a PROGRAM exception.
The errorstatus (which i debugged by use of the %STATUS function) is set to 9999, therefore can not be monitored.
If i code
    ON-ERROR 9999;
it won't compile ("not a valid status code")
This must be a bug, i think.
How can i get MCH3401 handled in my monitor group?


PS. We are on Power8 with V7R3
Thank you all for your advice & best regards, Martin Neugebauer


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.