Author |
Message
|
Carla Viragh |
Posted: Fri Aug 20, 2004 5:53 am Post subject: Q - How to destroy only messages with a correlid |
|
|
 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 |
|
 |
bower5932 |
Posted: Fri Aug 20, 2004 9:07 am Post subject: |
|
|
 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 |
|
 |
Carla Viragh |
Posted: Fri Aug 20, 2004 10:59 am Post subject: |
|
|
 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 |
|
 |
EddieA |
Posted: Fri Aug 20, 2004 11:53 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Fri Aug 20, 2004 1:27 pm Post subject: |
|
|
 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 |
|
 |
Carla Viragh |
Posted: Mon Aug 23, 2004 6:32 am Post subject: |
|
|
 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 |
|
 |
|