EXPERT RESPONSE
One of the basic things to note about MQ operation is that the messages are not guaranteed to arrive in the same order that they were sent. Although I'm not excessively familiar with MQ, I do remember that the way to cope with this is to the relevant fields in the message headers (?MSGID or ?CORRELID but I'm too out of MQ activity to know if these are correct). I suggest you bash up some sort of formatting which records the total number of messages to be sent and then put this max number along with the actual number in these fields. Then you can know within CICS that you have got all you are interested in before continuing processing. Observe that the Message in the TriggerQ will give you the info you need to collect the set of messages in the InputQ.
Robert Harris
Inventor
CICS Technical Strategist -- CICS expert at Search390.com
Editor's note: Do you agree with this expert's response? If you have more to share, post it in one of our discussion forums.
|