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 empty a queue via MS-DOS ?

Post new topic  Reply to topic
 How to empty a queue via MS-DOS ? « View previous topic :: View next topic » 
Author Message
Carto
PostPosted: Wed Feb 02, 2005 5:22 am    Post subject: How to empty a queue via MS-DOS ? Reply with quote

Newbie

Joined: 02 Feb 2005
Posts: 1

Which is the best way / which commands to empty a queue via ms-dos ?
This for clean up reason.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Feb 02, 2005 5:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

runmqsc will allow you to issue a CLEAR QUEUE command.

But this command will fail if there is an application that has the queue open.

In that case, you would need something like the Q utility (a support pack) which will let you read each message from the queue into an empty file.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Tue Feb 15, 2005 2:35 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

How about running amqsget ( sample c program) from the command line.
the format is :
amqsget <queue name> <queue manager name>
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
bbburson
PostPosted: Tue Feb 15, 2005 2:23 pm    Post subject: Reply with quote

Partisan

Joined: 06 Jan 2004
Posts: 378
Location: Nowhere near a queue manager

shalabh1976 wrote:
How about running amqsget ( sample c program) from the command line.
the format is :
amqsget <queue name> <queue manager name>


This works only if the messages are less than 100 bytes long. You'd have to modify and recompile amqsget to truncate longer messages.
Back to top
View user's profile Send private message
RAJESHRAMAKRISHNAN
PostPosted: Mon Feb 21, 2005 10:10 pm    Post subject: Reply with quote

Voyager

Joined: 01 May 2004
Posts: 96

You can use the utility MQJExplorer (http://www.kolban.com/mqjexplorer/download.htm) this has some features like taking backup and replaying them.
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 » How to empty a queue via MS-DOS ?
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.