| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
Deepa.m
Joined: 28 Apr 2005
Posts: 88
|
| Posted: Wed Jan 18, 2006 5:16 pm Post subject: Number of messages in the queue |
|
|
| can i get the number of messages in the queue I don't want the messages to get deleted when we read the queue its count. please don't give any online options ...I want this process to be automated for my application so that it gets the queue counts before starting the process. |
|
| Back to top |
|
vijay_in
Joined: 14 Jul 2005
Posts: 4
Location: Bangalore
|
| Posted: Thu Feb 02, 2006 3:02 pm Post subject: Re: Number of messages in the queue |
|
|
Hi,
You can get count using MQSC command in SDSF but thats online command. In order for Program Automation you can send the MQSC cammand as input data and do a MQPUT on SYSTEM.COMMAND.QUEUE. In your MQMD dont forget to give reply_to_q so that you get the response in the reply q. So in your Reply q you will get the Count of the queue.
Note : For putting message to SYSTEM.COMMAND.QUEUE you need priviledges check up with your Admin.
Regards,
Vijay S |
|
| Back to top |
|
vijay_in
Joined: 14 Jul 2005
Posts: 4
Location: Bangalore
|
| Posted: Fri Feb 03, 2006 4:20 pm Post subject: |
|
|
Sorry its not SYSTEM.COMMAND.QUEUE. Correct queue name is SYSTEM.COMMAND.INPUT. This Method will work only in ZOS.
Regards,
Vijay S |
|
| Back to top |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|