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 » How to Browse directly the nth message in a queue

Post new topic  Reply to topic
 How to Browse directly the nth message in a queue « View previous topic :: View next topic » 
Author Message
Rahul999
PostPosted: Wed May 09, 2007 8:05 pm    Post subject: How to Browse directly the nth message in a queue Reply with quote

Centurion

Joined: 14 Mar 2007
Posts: 134

Hi All,

I have a queue which consists of 12500 messages and i only want to look at 6587th message. Is there any way to browse a particular message.

Thnx in Adavnce
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Mr Butcher
PostPosted: Wed May 09, 2007 10:38 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

how do you know the message that you want is #6587? because you browsed them all and searched for the content?

anyway you either know the (unique) messageid/correlid so you can do a a single browse, or you have to browse all other messages before....
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 10, 2007 12:27 am    Post subject: Reply with quote

Grand High Poobah

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

Mr Butcher wrote:
how do you know the message that you want is #6587? because you browsed them all and searched for the content?


And remember, if you browsed for it and found it, it may not be the 6587th message when you go back and look. You'd need to examine it once you've found it.

On a general point, it's seldom a good idea to hold large numbers of messages on a queue. If only because it's a pain to search and manage them - MQ is not a database. Better to offload them into a database, reloading them into a queue when it's time to process them (if ever).
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu May 10, 2007 11:01 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Vitor wrote:

And remember, if you browsed for it and found it, it may not be the 6587th message when you go back and look. You'd need to examine it once you've found it.

Browse it with a lock and then it will be there. Unless it expires in the interm.
Vitor wrote:

On a general point, it's seldom a good idea to hold large numbers of messages on a queue. If only because it's a pain to search and manage them - MQ is not a database. Better to offload them into a database, reloading them into a queue when it's time to process them (if ever).

Amen.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
atheek
PostPosted: Thu May 10, 2007 8:15 pm    Post subject: Reply with quote

Partisan

Joined: 01 Jun 2006
Posts: 327
Location: Sydney

Rahul,

If you still want to do this, run this shell script (assuming ur platform is unix)

export PATH=$PATH:/opt/mqm/samp/bin;
start=`amqsbcg $1 $2| grep -n "MQGET of message number "$3" "$|awk '{FS=":";print $1}'`
next=`expr $3 + 1`
end=`amqsbcg $1 $2| grep -n "MQGET of message number "$next" "$|awk '{FS=":";print $1}'`
end=`expr $end - 1`
amqsbcg $1 $2 | sed -n $start,$end"p"


pass the following arguements to the script:
Name of Q, Name of QMGR, No. of the Message.

The script uses amqsbcg to display the message.
Back to top
View user's profile Send private message
sidharth_bora
PostPosted: Thu May 10, 2007 9:11 pm    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2005
Posts: 87

use paul clarkes / support pack where you can segregate the message by its contents... or use another GUI support pac to visullay see and select the message you want ..

regds
Back to top
View user's profile Send private message
rameshtdp
PostPosted: Fri May 11, 2007 4:57 am    Post subject: How to get a particular number msg from a queue Reply with quote

Novice

Joined: 11 May 2007
Posts: 18
Location: India

You can get a paricular message from a queue; even queue depth at any number.

Plese use IBM tool mo71 and give the parameters in the respective tool as Queuemanager name and queuename.


Rgds,
Ramesh
Back to top
View user's profile Send private message
Rahul999
PostPosted: Thu May 17, 2007 11:14 pm    Post subject: Reply with quote

Centurion

Joined: 14 Mar 2007
Posts: 134

Hi Ramesh,
Can u send me the link for this tool mo71 .
Back to top
View user's profile Send private message Send e-mail Visit poster's website
elvis_gn
PostPosted: Thu May 17, 2007 11:22 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Rahul999,

http://www-1.ibm.com/support/docview.wss?rs=203&uid=swg24000142&loc=en_US&cs=utf-8&lang=en

Regards.
Back to top
View user's profile Send private message Send e-mail
dkeister
PostPosted: Fri May 18, 2007 9:02 am    Post subject: Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

MQExerciser can do this with a GUI interface.
_________________
Dean Keister
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rahul999
PostPosted: Mon May 21, 2007 9:51 pm    Post subject: Reply with quote

Centurion

Joined: 14 Mar 2007
Posts: 134

Hey Dean,

Where can i find this MQ Exerciser.
If possible , send me the link
Thnx in Advance
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dkeister
PostPosted: Tue May 22, 2007 4:31 am    Post subject: Reply with quote

Disciple

Joined: 25 Mar 2002
Posts: 184
Location: Purchase, New York

Go to www.mqexerciser.com. When you download you will get Version 4 that has a number of new (and if I may be so bold) great features. However, I haven't had time to update the website to reflect the new features yet.
_________________
Dean Keister
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RogerLacroix
PostPosted: Thu May 24, 2007 12:50 pm    Post subject: Re: How to Browse directly the nth message in a queue Reply with quote

Jedi Knight

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

Rahul999 wrote:
I have a queue which consists of 12500 messages and i only want to look at 6587th message. Is there any way to browse a particular message.

Hi,

Did you look here for a list of free MQ Tools?
http://www.capitalware.biz/mq_tools.html

Also, did you try out MQ Visual Browse or MQ Visual Edit ? Both of these tools can selectivity display a range of messages from a queue.

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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to Browse directly the nth message in a 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.