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



Hi,

I'm trying to get the error message occurring after a QCMDEXC call and failure. The MI program that makes the QCMDEXC call can use any command, etc. Unfortunately, the only message I can seem to trap are the ones from prompted calls. For example, if I call RPG pgm "A" while "A" is in my stack naturally I get the recursive call error. But I cannot get the error message text in the MI program even though I successfully trap a later error downstream from the QCMDEXC. I know the error has been trapped and dealt with at the QCMDEXC level but does anyone know a way to get that text other than the job log from MI ?

RPG pgm A => MI PGM B (monitor all errors) => QCMDEXC(call RPG PGM A).

MI PGM B needs error text "trying to call pgm A recursively..." from the failed call. I end up with blanks for the error message.

Another elegant solution for the same issue would be to not have QCMDEXC throw the error but pass it back for handling to the MI program, which of course solves two problems at once.

TIA!

_________________________________________________________________
Free up your inbox with MSN Hotmail Extra Storage. Multiple plans available. http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.