IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Number of messages in the queue


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jan 18, 2006 5:16 pm
Reply with quote

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
View user's profile Send private message
vijay_in

New User


Joined: 14 Jul 2005
Posts: 4
Location: Bangalore

PostPosted: Thu Feb 02, 2006 3:02 pm
Reply with quote

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
View user's profile Send private message
vijay_in

New User


Joined: 14 Jul 2005
Posts: 4
Location: Bangalore

PostPosted: Fri Feb 03, 2006 4:20 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts how to convert and use 1 bit hex-numb... COBOL Programming 10
No new posts Merge a variable number of records fr... DFSORT/ICETOOL 5
No new posts total number of bytes PL/I & Assembler 10
No new posts Chained RPL - How to get RRN number. JCL & VSAM 0
No new posts how to list the number of backup data... JCL & VSAM 3
Search our Forums:

Back to Top