On 10/13/21 4:41 PM, I wrote:
Ok. Great, when the ILE program is called from the command line.

But what happens if the ILE program (a programmatically generated one) is called from another ILE program (the one that generated it), which then exits?

I'd prefer to keep the generated program as simple as possible; is there a way the calling program can catch the completion message, and bounce it to the user?

I was all set to do a QMHRCVPM and a QMHSNDPM, when out of the corner of my eye, I spotted QMHMOVPM. Bingie! With QMHMOVPM prototytped as MOVPGMMSG, all I had to do was

CALLP MOVPGMMSG(' ':'*COMP':1:'*':2:ERRORCODE)

and the problem was solved.

I figured I couldn't possibly be the first one to need to percolate program messages in general, and completion messages in particular, but I was still pleasantly surprised that the nice folks at IBM Rochester provided an API call specifically for that purpose.

--
JHHL

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