I have a queue where an external vendor sends us messages. We don't want to ask that vendor to turn off that "feed", but for the next month or two, we want to delete that queue on a daily basis. I'm running MQ 7 on Windows. I found CSQUTIL, but it is under the hierarchy of Z/OS. Is there some utility I can run from Windows? Or can I download a Windows version of CSQUTIL?
Pinned topic Delete all messages in a queue via scheduled job
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-18T09:02:04Z at 2013-01-18T09:02:04Z by SystemAdmin
NealWalters 270005GJ0K29 Posts
Re: Delete all messages in a queue via scheduled job2012-12-10T16:10:30ZThis is the accepted answer. This is the accepted answer.I'm currently using the "Clear Message" then "Queue will be cleared using MQGET API Calls" - but when a million messages pile up, it takes quite a while, and I have to keep clicking the "time out - do you want to continue".
arun_08 270001KYU72 Posts
SystemAdmin 110000D4XK8523 Posts
Re: Delete all messages in a queue via scheduled job2013-01-18T09:02:04ZThis is the accepted answer. This is the accepted answer.
- arun_08 270001KYU7
Set it in crontab to run after some defined interval.
echo 'clear ql(<<queue name>>)' |runmqsc QueueManagerName