RC2186
(2186)
Explanation:
On an MQGET call, the MQGMO structure is not valid, for one of the following reasons:
• The GMSID field is not GMSIDV.
• The GMVER field specifies a value that is ...
The MQGET failing with the Reason code 2186 when executing the second time in the loop. The MQGET runs fine for the first time but it fails for second time. Please find the code below.
I am in the process of creating an MQ parser program in RPGLE. After MQGET wit reason code = o, i see that the buffer is consisting of junk data. I am able to see the messages using the WRKMQMQ option ...