|
I'm not sure why it is not working. The docs indicate that *PGMQ and QMHRCVM are the way to do it. I haven't done it using these APIs but have done it using CL like this: SNDPGMMSG MSGID(PSP0601) MSGF(PSPMSG) + MSGDTA(&CMPDSP) + TOMSGQ(&MSGQLIBR/&MSGQNAME) MSGTYPE(*INQ) + KEYVAR(&INQKEY) RCVMSG MSGTYPE(*RPY) MSGKEY(&INQKEY) WAIT(*MAX) + MSG(&INQRPY) -----Original Message----- From: Titus Kruse [mailto:t_kruse@xxxxxxxxx] Sent: Wednesday, January 19, 2005 10:39 AM To: C400-L@xxxxxxxxxxxx Subject: [C400-L] Re: Re: Sending inquiry message in batch job Yes, the message apears at the *SYSOPR. But receiving the answer by QMHRCVM and *PGMQ has been failed. *PGMQ is not allowed. I've tried QMHRCVPM instead. But the reply was not found. :-/ Titus "Ulrich, Kent" <Kent.Ulrich@xxxxxxxxxxxxxxx> schrieb im Newsbeitrag news:3C334ACE3F6FEA4987F48F13ADD8D7AE0AB93F@xxxxxxxxxxxxxxxxxxx > Specify *PGMQ for the reply message queue. Then use the QMHRCVM API using the > message key returned from QMHSNDM to get the reply message. > In looking at the documentation for QMHSNDM, you should be able to specify > *SYSOPR for the message queue. > > > -----Original Message----- > From: Titus Kruse [mailto:t_kruse@xxxxxxxxx] > Sent: Wednesday, January 19, 2005 9:11 AM > To: C400-L@xxxxxxxxxxxx > Subject: [C400-L] Re: Sending inquiry message in batch job > > > > Ok, let me ask a last question: When I send an inquiry message to QSYSOPR, > a reply message queue must also be specified. Which message queue would you > prefer? > > > "Ulrich, Kent" <Kent.Ulrich@xxxxxxxxxxxxxxx> schrieb > im Newsbeitrag > news:3C334ACE3F6FEA4987F48F13ADD8D7AE0248DE1B@xxxxxxxxxxxxxxxxxxx > You can send it to QSYSOPR. Alternately you could define a message queue > for > certain messages and use it. I have a data area that I use which contains a > set of message queue names for specific uses. For example, a message queue > for > program exceptions etc. which is connected to a designated person. > > Kent > > > > > > _______________________________________________ > This is the C programming iSeries / AS400 (C400-L) mailing list > To post a message email: C400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/c400-l > or email: C400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/c400-l. > > > _______________________________________________ > This is the C programming iSeries / AS400 (C400-L) mailing list > To post a message email: C400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/c400-l > or email: C400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/c400-l. > > _______________________________________________ This is the C programming iSeries / AS400 (C400-L) mailing list To post a message email: C400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.
As an Amazon Associate we earn from qualifying purchases.
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.