ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Capture file name with MQGET

Post new topic  Reply to topic Goto page Previous  1, 2
 Capture file name with MQGET « View previous topic :: View next topic » 
Author Message
yani03
PostPosted: Fri Apr 07, 2017 6:16 am    Post subject: Reply with quote

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
View user's profile Send private message
yani03
PostPosted: Fri Apr 07, 2017 8:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General Discussion » Capture file name with MQGET
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.