Author |
Message
|
Carto |
Posted: Wed Feb 02, 2005 5:22 am Post subject: How to empty a queue via MS-DOS ? |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Feb 02, 2005 5:25 am Post subject: |
|
|
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 |
|
 |
shalabh1976 |
Posted: Tue Feb 15, 2005 2:35 am Post subject: |
|
|
 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 |
|
 |
bbburson |
Posted: Tue Feb 15, 2005 2:23 pm Post subject: |
|
|
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 |
|
 |
RAJESHRAMAKRISHNAN |
Posted: Mon Feb 21, 2005 10:10 pm Post subject: |
|
|
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 |
|
 |
|