Inquire Usage on z/OSĀ®

The Inquire Usage (MQCMD_INQUIRE_USAGE) command inquires about the current state of a page set, or information about the log data sets.


Optional parameters

    CommandScope (MQCFST)
    Command scope (parameter identifier: MQCACF_COMMAND_SCOPE). Specifies how the command is executed when the queue manager is a member of a queue-sharing group. We can specify one of the following:

    • blank (or omit the parameter altogether). The command is executed on the queue manager on which it was entered.
    • a queue manager name. The command is executed on the queue manager you specify, providing it is active within the queue sharing group. If you specify a queue manager name other than the queue manager on which it was entered, you must be using a queue sharing group environment, and the command server must be enabled.
    • an asterisk (*). The command is executed on the local queue manager and is also passed to every active queue manager in the queue sharing group.

    The maximum length is MQ_QSG_NAME_LENGTH.

    PageSetId (MQCFIN)
    Page set identifier (parameter identifier: MQIA_PAGESET_ID). If you omit this parameter, all page set identifiers are returned.
    UsageType (MQCFIN)
    The type of information to be returned (parameter identifier: MQIACF_USAGE_TYPE). The value can be any of the following values:

      MQIACF_USAGE_PAGESET
      Return page set (MQIACF_USAGE_PAGESET) and buffer pool information (MQIACF_USAGE_BUFFER_POOL).

      MQIACF_USAGE_DATA_SET
      Return data set information for log data sets (MQIACF_USAGE_DATA_SET).

      MQIACF_ALL
      Return page set, buffer pool, and data set information (MQIACF_USAGE_PAGESET), (MQIACF_USAGE_BUFFER_POOL), and (MQIACF_USAGE_DATA_SET).

      MQIACF_USAGE_SMDS
      Return shared message data set usage ( MQIACF_USAGE_SMDS) and buffer pool information (MQIACF_USAGE_BUFFER_POOL).

      This includes the allocated, and used space for each data set, and information about the number of buffers currently active, the number with valid contents, and the number of free buffers.