Yes you can, code MQPUT and after that an MQGET WAIT in the IMS application, 
like you would do in a standalone or batch program. Simply search for MQPUT 
with MQGET WAIT example (e.g. Search for COBOL example: Getting a message using 
the wait option). It will be any non IMS sample, you just need to link with 
CSQQSTUB. You have to do the MQOPEN after each IMS input message, because for 
security and integrity reasons in an IMS transaction the MQ connections are 
closed when the transaction instance ends (e.g. next GU IOPCB).
However, this is bad behaviour because the IMS region is blocked for other work 
- consider increasing number of IMS regions to process those transactions. In 
addition any lock aquired by DB calls will be held longer which might cause 
deadlocks. So at best do read without locking before and updates after it and 
then commit asap to keep locking windows small.

Denis.


On Monday, March 31, 2025 at 01:26:50 PM GMT+2, Binyamin Dissen 
<00000662573e2c3a-dmarc-requ...@listserv.ua.edu> wrote: 





Can an IMS MPP initiate sending an MQ message and wait upon the response?

I am looking for examples, but all just show triggered (which is the other
way).

--
Binyamin Dissen <bdis...@dissensoftware.com>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to