|
CRPence wrote:
Or if the "passing 'ProgC'" implies the ProgD is logging
the noted SNDPGMMSG as "TOPGMQ(*SAME ('ProgC'))"
yes this is the case. In my original post
SNDPGMMSG MSGID(WDC0145) MSGF(TFMMSG) MSGDTA(' ')
TOPGMQ(*SAME ('WIM331')) KEYVAR(&W@MSGNO)
WIM331 refers to ProgC. ProgC (WIM331) is passing the program
queue name to ProgD which is then sending the message
TOPGMQ(*SAME ('WIM331'))
then probably the best fix is to just change ProgD to use
"TOPGMQ(*PRV (&PassedPgm))"
The vendor program WIM331 (ProgC in my scenario) mentioned above may be run interactively (so the error messages are displayed) or
in batch (where the messages are disregarded).
What I am attempting to do is call the program in batch but use the messages generated to give a better indication when an error
occurs. So my question is now if I changed ProgD to
"TOPGMQ(*PRV (&PassedPgm))"
as suggested would the message still be sent to WIM331 if run
interactively. Would it not be sent to the caller of WIM331?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.