|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Capture file name with MQGET |
« View previous topic :: View next topic » |
Author |
Message
|
yani03 |
Posted: Fri Apr 07, 2017 6:16 am Post subject: |
|
|
Newbie
Joined: 03 Apr 2017 Posts: 8
|
Hi guys,
I've made some progress on this, but have hit a snag. I'm able to create the message handle successfully(per reason code zero), however the MQGET call returns a reason code of 2460:
On an MQCRTMH, MQDLTMH, MQSETMP, MQINQMP or MQDLT call, a message handle supplied is not valid, for one of the following reasons:
- The parameter pointer is not valid, or (for the MQCRTMH call) points to read-only storage. (It is not always possible to detect parameter pointers that are not valid; if not detected, unpredictable results occur.)
- The value specified was not returned by a preceding MQCRTMH call.
- The value specified has been made invalid by a preceding MQDLTMH call.
When it says "points to read-only storage" is it referring to the remote queue? Has anyone had this issue before?
Thanks in advance. |
|
Back to top |
|
 |
yani03 |
Posted: Fri Apr 07, 2017 8:32 am Post subject: |
|
|
Newbie
Joined: 03 Apr 2017 Posts: 8
|
yani03 wrote: |
Hi guys,
I've made some progress on this, but have hit a snag. I'm able to create the message handle successfully(per reason code zero), however the MQGET call returns a reason code of 2460:
On an MQCRTMH, MQDLTMH, MQSETMP, MQINQMP or MQDLT call, a message handle supplied is not valid, for one of the following reasons:
- The parameter pointer is not valid, or (for the MQCRTMH call) points to read-only storage. (It is not always possible to detect parameter pointers that are not valid; if not detected, unpredictable results occur.)
- The value specified was not returned by a preceding MQCRTMH call.
- The value specified has been made invalid by a preceding MQDLTMH call.
When it says "points to read-only storage" is it referring to the remote queue? Has anyone had this issue before?
Thanks in advance. |
Looks like I missed assigning the handle to the MQGMO.msgHandle. Rookie mistake. |
|
Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|