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 » ways to get messages from a queue

Post new topic  Reply to topic
 ways to get messages from a queue « View previous topic :: View next topic » 
Author Message
sumit
PostPosted: Wed Apr 05, 2006 4:13 am    Post subject: ways to get messages from a queue Reply with quote

Partisan

Joined: 19 Jan 2006
Posts: 398

Hi,

In order to get a message from a queue I am using "q" utility. To be clear, if I want to get 20 messages with required message id from a queue of curdepth 500. Then, I have to write the command

q -I(Q name) -m(QM name) -g xm(msg id) -dd3 > filename

20 times with all the required msg ids.

Is there any way out or any other utility so that I can reduce my overhead from writing this command 20 times?
_________________
Regards
Sumit
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Wed Apr 05, 2006 4:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The simple way to solve this is with a script, that runs the command for you once for each message id in your list.

All command shells that I know of, including windows, let you write shell scripts that will do that.

There are also other tools than the q utility - like CapitalWare's MQ Batch Toolkit - that may help. Not all of them are free.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sirsi
PostPosted: Thu Apr 13, 2006 11:27 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

you can use support pack MO03 to get 'n' number of messages with -r option.. not sure about the message id..
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 » General IBM MQ Support » ways to get messages from 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.