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 » IBM MQ API Support » Getting RC 2034 when using MQGMO_MSG_UNDER_CURSOR

Post new topic  Reply to topic
 Getting RC 2034 when using MQGMO_MSG_UNDER_CURSOR « View previous topic :: View next topic » 
Author Message
kirani
PostPosted: Mon Jul 28, 2003 3:37 pm    Post subject: Getting RC 2034 when using MQGMO_MSG_UNDER_CURSOR Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

I am trying to get (remove) multiple messages from the queue from a specific position. First I am browsing the queue to reach that message position and then I'm specifying MQGMO_MSG_UNDER_CURSOR to remove that specific message using MQGET call. This works fine for single message, but fails when trying to remove multiple messages, as now the cursor is pointing to the message which has been removed from the queue. I get reason code 2034 for the next MQGET call.
Is there a way to advance my cursor to the next message on the queue within the loop?

TIA.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
kirani
PostPosted: Mon Jul 28, 2003 4:11 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

The problem is solved.
I had to call MQGET once again to move the cursor to next message on the queue using MQGMO_BROWSE_NEXT option. Is this is the way to do it?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
jonevu
PostPosted: Tue Aug 05, 2003 8:04 am    Post subject: Reply with quote

Newbie

Joined: 30 Jul 2003
Posts: 3
Location: Chicago, Illinois

Also, in your loop logic, make sure the correlation ID and message ID are reset to empty values following a successful pass.
_________________
Certified MQ Series Expert
Certified C++ Expert
datasensellc@attglobal.net
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Getting RC 2034 when using MQGMO_MSG_UNDER_CURSOR
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.