control attribute, performance event, control attribute for queue service interval events" />
Enabling queue service interval events
To configure a queue for queue service interval events :
- Enable performance events on the queue manager, by setting the queue manager attribute PERFMEV to ENABLED.
- Set the control attribute, QSVCIEV, for a Queue Service Interval High or OK event on the queue, as required.
- Specify the service interval time by setting the QSVCINT attribute for the queue to the appropriate length of time.
For example, to enable Queue Service Interval High events with a service interval time of 10 seconds (10 000 milliseconds) use the following MQSC commands:
ALTER QMGR PERFMEV(ENABLED) ALTER QLOCAL('MYQUEUE') QSVCINT(10000) QSVCIEV(HIGH)
Automatic enabling of queue service interval events
The high and OK events are mutually exclusive; that is, when one is enabled, the other is automatically disabled.
When a high event is generated on a queue, the queue manager automatically disables high events and enables OK events for that queue.
Similarly, when an OK event is generated on a queue, the queue manager automatically disables OK events and enables high events for that queue.
All performance events must be enabled using the queue manager attribute PERFMEV.
Table 5. Enabling queue service interval events using MQSC Queue service interval event
Queue attributes
Queue Service Interval High
Queue Service Interval OK
No queue service interval events
QSVCIEV (HIGH)
QSVCIEV (OK)
QSVCIEV (NONE)
Service interval
QSVCINT (tt) where tt is the service
interval time in milliseconds.