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 IBM MQ Support » Q - How to destroy only messages with a correlid

Post new topic  Reply to topic
 Q - How to destroy only messages with a correlid « View previous topic :: View next topic » 
Author Message
Carla Viragh
PostPosted: Fri Aug 20, 2004 5:53 am    Post subject: Q - How to destroy only messages with a correlid Reply with quote

Voyager

Joined: 31 Oct 2003
Posts: 92
Location: São Paulo - Brasil

Please guys... I am trying to destroy only messages that have a correlID "M A R G O B J V . . . . . . . . . . . . . . . ." and I am trying to use Q to do this but I can´t find the right sintaxe to make it work

My local queue have more than 45000 messages and the bad messages (correlID = M A R G O B J V . . . . . . . . . . . . . . . .) are 31961! I need to clean them all...

Any suggestions?
_________________
Carla Viragh
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri Aug 20, 2004 9:07 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You could modify the amqsget sample to get the 'bad messages' and throw them away.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Carla Viragh
PostPosted: Fri Aug 20, 2004 10:59 am    Post subject: Reply with quote

Voyager

Joined: 31 Oct 2003
Posts: 92
Location: São Paulo - Brasil

Yes... but I don´t know how to do this.

I saw the -g option in Q, so I´d like to use it...

Thanks!
_________________
Carla Viragh
Back to top
View user's profile Send private message Send e-mail
EddieA
PostPosted: Fri Aug 20, 2004 11:53 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
I saw the -g option in Q, so I´d like to use it...

What have you tried. It's easy enough with "q" to Browse the messages to ensure that you really are getting the right one before you Get it.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Aug 20, 2004 1:27 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

If you had text in the message body that was unique to those messages with a CorrelID="M A R G O B J V . . " (i.e. maybe you have MARGOBJV in the message body) then you could use MQ Visual Edit's Clear Queue By Matching String function.

Or maybe there is a text string in the messages of the ones you want to keep then you could Clear Queue By Matching String function to delete messages that do NOT match the search string.

For more information or to download a 30-day trial of MQ Visual Edit, go to:
http://www.capitalware.biz/products.html

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Carla Viragh
PostPosted: Mon Aug 23, 2004 6:32 am    Post subject: Reply with quote

Voyager

Joined: 31 Oct 2003
Posts: 92
Location: São Paulo - Brasil

Guys, I was using a wrong sintaxe...

./q -i MyQueue -gxc correlid_in_hex -m MyQM (I thought -g was enough to get the message).

./q -I MyQueue -gxc correlid_in_hex -m MyQM cleaned the bad messages.

Thanks.
_________________
Carla Viragh
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Q - How to destroy only messages with a correlid
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.