by saintsinner » Fri Sep 03, 2010 3:01 pm
Hi.. I have a requirement where I need to process the last MQ msg in the Q. The reply to every msg. is the same. Currently the CICS program is designed in such a way that it just reads the first available message, processes it and thats it. It doesnt check to see if there is another message in the Q. The problem with this is, when the CICS is down, the message Q gets built up since the sending system sends message multiple times in a day (for instance, a msg every hour). So, I need to change the program to keep reading the Q till it gets to the last msg. and then process the last msg. What I do not know is, does MQGET populate the message fields with spaces or low-values when there is no msg. left or it will hold the contents of the last successful read? In the former case, I will have to store the msg contents for every MQGET in a temporary WS vairable. In the latter, I need not. Please let me know which is the legitimate way.