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 » IBM MQ API Support » Pruge MQ Queue using script

Post new topic  Reply to topic
 Pruge MQ Queue using script « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Thu May 20, 2010 8:03 am    Post subject: Pruge MQ Queue using script Reply with quote

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
View user's profile Send private message Send e-mail
wschutz
PostPosted: Thu May 20, 2010 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Vitor
PostPosted: Thu May 20, 2010 8:40 am    Post subject: Re: Pruge MQ Queue using script Reply with quote

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
View user's profile Send private message
kash3338
PostPosted: Thu May 20, 2010 8:48 am    Post subject: Re: Pruge MQ Queue using script Reply with quote

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
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu May 20, 2010 9:51 am    Post subject: Re: Pruge MQ Queue using script Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Thu May 20, 2010 10:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Pruge MQ Queue using script
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.