ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » When last MQ command was issued to a queue

Post new topic  Reply to topic
 When last MQ command was issued to a queue « View previous topic :: View next topic » 
Author Message
daniloclar
PostPosted: Tue Apr 04, 2006 10:27 am    Post subject: When last MQ command was issued to a queue Reply with quote

Newbie

Joined: 04 Apr 2006
Posts: 2

Hi,

I just basically want to know, if any messages was processed on the queue (either by MQPUT or MQGET) for a specified period. I want to issue a message to the operator if a queue is inactive for a certain period (2 hrs).

The inquiry process should also be in batch.


Thanks in advance
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 04, 2006 10:29 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can issue RESET QUEUE STATISTICS on against any version 5.3 qmgr and see how many messages were enqueued and dequeued since the last time the RESET QUEUE STATISTICS was issued.

And you can read about queue service intervals for z/OS in the Information Center.

And you can read about new features for accounting and statistics in version 6 of MQ.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
daniloclar
PostPosted: Wed Apr 05, 2006 8:06 am    Post subject: Reply with quote

Newbie

Joined: 04 Apr 2006
Posts: 2

Hi Jeff,

Do you have a sample code written in COBOL that issues this Reset Queue Statistics command?

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 05, 2006 9:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can talk to the z/OS command server to issue this command using a plain text message put on the command server's input queue.

So you just need to put a message that contains a properly formatted reset queue statistics command, and then parse the response messages.

I don't have any sample code for parsing the response messages.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Wed Apr 05, 2006 4:44 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

Quote:
RESET QUEUE STATISTICS on against any version 5.3 qmgr

Err. Isn't RESET QUEUE STATISTICS a PCF command. In which case you can't do that on a 5.3 z/OS system.
Quote:
You can talk to the z/OS command server to issue this command using a plain text message put on the command server's input queue.

For MQSC commands only.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Apr 05, 2006 4:48 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Well, its documented here:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzaj.doc/rstqst.htm
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » When last MQ command was issued to a queue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.