You are correct, the batch program must commit the request message before it does an 
MQGET to wait for the reply. However, since you can see the reply message with your 
browse utility, that doesn't sound like the problem. 

If you want to use match on MSGID, then you should specify MD.RO_PASS_MSG_ID, 
otherwise the bridge will generate a unique msgid for the response.  Alternatively, 
you could use the more conventional approach which is MD.RO_COPY_MSGID_TO_CORELID in 
which case you match on CORELID after seeding it with the MSGID returned from the 
MQPUT.

regards,
Dennis

> -----Original Message-----
> From: Jeff Orris [SMTP:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 7:33 AM
> To:   [EMAIL PROTECTED]
> Subject:      GET 3270 Bridge Reply
> 
> I'm writing a COBOL z/OS batch program which puts a message to a CICS
> bridge queue and attempts to get the reply message from the reply queue.
> But the MQGET is failing with a reason code of MQRC_NO_MSG_AVAILABLE.  I've
> made sure that MQGMO-WAITINTERVAL is long enough (60000 ms).  I also can
> browse the reply message in the queue with another utility (supportpac
> MA10) while the MQGET is waiting.
> 
> My match options are set to match on MSGID only (and I don't change the id
> returned in MQMD-MSGID by the PUT to the bridge queue).
> 
> I'm guessing that, since the batch job is considered one unit of work, the
> message is not available for GET until the batch job completes.  I tried
> issuing an MQCMIT just before opening the reply queue, but the reply
> message is still unavailable.
> 
> Any ideas or suggestions?
> 
> Jeff Orris
> 
> 
> 
> 
> This message contains privileged and confidential information intended for the
> above addressees only.  If you receive this message in error please delete or destroy
> this message and any accompanying documentation after contacting the sender.  The
>  sender of this message will fully cooperate in the civil and criminal prosecution of
> any individual engaging in the unauthorized use of this message.
> 
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to