Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Number of messages in the queue

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
Deepa.m
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Wed Jan 18, 2006 5:16 pm    Post subject: Number of messages in the queue
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    Post subject: Re: Number of messages in the queue
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Repeat Sequence Number Until change i... rahulabvp DFSORT/ICETOOL 6 Thu Mar 29, 2018 12:51 pm
No new posts Web Service VS MQ Messages Ashishpanpaliya All Other Mainframe Topics 1 Wed Feb 28, 2018 10:48 pm
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts PARSE GDG name to separate generation... Abid Hasan SYNCSORT 2 Sun Feb 11, 2018 3:40 pm
No new posts No message in reply queue!! Vignesh Sid Java & MQSeries 3 Thu Jan 11, 2018 10:45 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us