Author |
Message
|
daniloclar |
Posted: Tue Apr 04, 2006 10:27 am Post subject: When last MQ command was issued to a queue |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Apr 04, 2006 10:29 am Post subject: |
|
|
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 |
|
 |
daniloclar |
Posted: Wed Apr 05, 2006 8:06 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Wed Apr 05, 2006 9:03 am Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Wed Apr 05, 2006 4:44 pm Post subject: |
|
|
 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 |
|
 |
wschutz |
Posted: Wed Apr 05, 2006 4:48 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
|