Posted: Mon Oct 07, 2013 3:35 am Post subject: MQ Depth in CL or RPG Program
Newbie
Joined: 07 Oct 2013 Posts: 1
Hi
I have a requirement where I need to build a job in As400 which monitors few queues getting the name from Data Area for their depth. If the depth is Zero no issues but when it is more than 0 we need to send mail to some user.
While searching for this I came across a command RUNMQSC.
Please help me understanding this command and what and how are the parameters used.
Posted: Mon Oct 07, 2013 3:57 am Post subject: Re: MQ Depth in CL or RPG Program
Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
imrkhan wrote:
Hi
I have a requirement where I need to build a job in As400 which monitors few queues getting the name from Data Area for their depth. If the depth is Zero no issues but when it is more than 0 we need to send mail to some user.
While searching for this I came across a command RUNMQSC.
Please help me understanding this command and what and how are the parameters used.
Be sure to print out the PDF file a couple of times so you have several copies. Take one home for your night stand. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Posted: Mon Oct 07, 2013 4:55 am Post subject: Re: MQ Depth in CL or RPG Program
Jedi Council
Joined: 02 Nov 2006 Posts: 6339
imrkhan wrote:
I have a requirement where I need to build a job in As400 which monitors few queues getting the name from Data Area for their depth...
I would be very interested in 'their' justification for needing that information, especially as uncommitted messages count toward depth. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Posted: Mon Oct 07, 2013 2:25 pm Post subject: Re: MQ Depth in CL or RPG Program
Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
imrkhan wrote:
Hi
I have a requirement where I need to build a job in As400 which monitors few queues getting the name from Data Area for their depth. If the depth is Zero no issues but when it is more than 0 we need to send mail to some user.
While searching for this I came across a command RUNMQSC.
Please help me understanding this command and what and how are the parameters used.
Thanks for help.
I suggest that you contact an AS/400 MQ specialist in your organization. They will set you on the right path.
Queue Depth will greater than zero at some point in time for normal operation of all queues.
MQ can be configured to start a program when the queue depth exceeds a certain percentage. I think you need to do some more learning and reading about MQ.... _________________ Glenn
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