Author |
Message
|
kash3338 |
Posted: Thu May 20, 2010 8:03 am Post subject: Pruge MQ Queue using script |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
My MQ server is installed in a UNIX machine and i need to track a Queue and if the number of messages exceeds 50, i need to save the messages and purge the queue.
Can anyone tell me how to implement this using MQ commands in Unix scripts? |
|
Back to top |
|
 |
wschutz |
Posted: Thu May 20, 2010 8:21 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Hint: triggering, echo and runmqsc and maybe the "q" program (ma01 suppotpac) _________________ -wayne |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 20, 2010 8:40 am Post subject: Re: Pruge MQ Queue using script |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
Can anyone tell me how to implement this using MQ commands in Unix scripts? |
You can't with WMQ commands, at least the unload part, but the MA01 support pac will fill that gap. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kash3338 |
Posted: Thu May 20, 2010 8:48 am Post subject: Re: Pruge MQ Queue using script |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Vitor wrote: |
kash3338 wrote: |
Can anyone tell me how to implement this using MQ commands in Unix scripts? |
You can't with WMQ commands, at least the unload part, but the MA01 support pac will fill that gap. |
Can you please explain me how to achieve this? |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 20, 2010 9:51 am Post subject: Re: Pruge MQ Queue using script |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
Can you please explain me how to achieve this? |
As my worthy associate said. The MA01 support pac contains the q program (as he said if look closely at his post).
I'd endorse the method he outlines. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wschutz |
Posted: Thu May 20, 2010 10:36 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Read up on MQ triggering, esp DEPTH. (Be aware that you need to turn triggering on after a depth trigger event). Use echo "cmd" | runmqsc. Download MA01 and read the doc.
Have fun! _________________ -wayne |
|
Back to top |
|
 |
|