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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Clearing 2nd message in a 10 message queue

Post new topic  Reply to topic
 Clearing 2nd message in a 10 message queue « View previous topic :: View next topic » 
Author Message
srinivasraom
PostPosted: Tue Oct 24, 2006 10:07 pm    Post subject: Clearing 2nd message in a 10 message queue Reply with quote

Apprentice

Joined: 18 May 2006
Posts: 31

I want to clear a 2nd message in a queue containing 10 messages. How can i do this?
Back to top
View user's profile Send private message
hos
PostPosted: Tue Oct 24, 2006 11:15 pm    Post subject: Reply with quote

Chevalier

Joined: 03 Feb 2002
Posts: 470

You can't do this.
Replay the first message and then delete the next one.
Back to top
View user's profile Send private message
srinivasraom
PostPosted: Tue Oct 24, 2006 11:36 pm    Post subject: Reply with quote

Apprentice

Joined: 18 May 2006
Posts: 31

tell me any alternative to do this.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Oct 25, 2006 3:58 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Of course you can do it, with your own code something like this:

MQCONN
MQOPEN MQOO_INPUT
MQGET MQGMO_BROWSE_NEXT+MQGMO_LOGICAL_ORDER
MQGET MQGMO_BROWSE_NEXT+MQGMO_LOGICAL_ORDER
MQGET MQGMO_MSG_UNDER_CURSOR
MQCLOSE
MQDISC

This would remove the 2nd message from the queue. Read the Websphere MQ Application Programming Guide, there is a large section all about message order and retrieval.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Oct 25, 2006 4:07 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Or use the MO71 support pack to unload the 10 messages from the queue, edit the file to remove the 2nd message & reload it.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Clearing 2nd message in a 10 message queue
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.