Queue accounting information

Use the queue attribute ACCTQ and the queue manager attribute ACCTQ to control the collection of queue accounting information.

To change the value of the queue attribute, use the MQSC command, ALTER QLOCAL, and specify the parameter ACCTQ. Accounting messages are generated only for connections that begin after accounting is enabled. Note that changes to this value are only effective for connections to the queue manager that occur after the change to the attribute.

The queue attribute ACCTQ can have the following values:

    ON
    Queue accounting information for this queue is collected for every connection to the queue manager that opens the queue.

    OFF
    Queue accounting information for this queue is not collected.

    QMGR
    The collection of queue accounting information for this queue is controlled according to the value of the queue manager attribute ACCTQ. This is the default value.

To change the value of the queue manager attribute, use the MQSC command, ALTER QMGR and specify the parameter ACCTQ. The queue manager attribute ACCTQ can have the following values:

    ON
    Queue accounting information is collected for queues that have the queue attribute ACCTQ set as QMGR.

    OFF
    Queue accounting information is not collected for queues that have the queue attribute ACCTQ set as QMGR. This is the default value.

    NONE
    The collection of queue accounting information is disabled for all queues, regardless of the queue attribute ACCTQ.

If the queue manager attribute, ACCTQ, is set to NONE, the collection of queue accounting information is disabled for all queues, regardless of the queue attribute ACCTQ.

For example, to enable accounting information collection for the queue, Q1, use the following MQSC command:
ALTER QLOCAL(Q1) ACCTQ(ON)
To enable accounting information collection for all queues that specify the queue attribute ACCTQ as QMGR, use the following MQSC command:
ALTER QMGR ACCTQ(ON)
Parent topic: Accounting information collection