DISPLAY STGCLASS on z/OS

Use the MQSC command DISPLAY STGCLASS to display information about storage classes.


Use MQSC commands

For information on how we use MQSC commands, see Performing local administration tasks using MQSC commands.

We can issue this command from sources 2CR. For an explanation of the source symbols, see Sources from which we can issue MQSC commands on z/OS .

Synonym: DIS STC


DISPLAY STGCLASS

DISPLAY STGCLASS ( generic-class ) WHERE(FilterCondition) ALL CMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)1PSID(integer*)QSGDISP(LIVE)QSGDISP(ALL)QSGDISP(QMGR)QSGDISP(COPY)QSGDISP(GROUP)1QSGDISP(PRIVATE)requested attrsRequested attrs,ALTDATEALTTIMEDESCRPASSTKTAXCFGNAMEXCFMNAMENotes:


Parameter descriptions for DISPLAY STGCLASS

You use DISPLAY STGCLASS to show the page set identifiers that are associated with each storage class.

    (generic-class)
    Name of the storage class. This is required.

    This is 1 through 8 characters. The first character is in the range A through Z; subsequent characters are A through Z or 0 through 9.

    A trailing asterisk (*) matches all storage classes with the specified stem followed by zero or more characters. An asterisk (*) on its own specifies all storage classes.

    WHERE
    Specify a filter condition to display only those storage classes that satisfy the selection criterion of the filter condition. The filter condition is in three parts: filter-keyword, operator, and filter-value:

      filter-keyword
      Almost any parameter that can be used to display attributes for this DISPLAY command. However, we cannot use the CMDSCOPE or QSGDISP parameters as filter keywords. We cannot use PSID as a filter keyword if you also use it to select storage classes.

      operator
      This is used to determine whether a connection satisfies the filter value on the given filter keyword. The operators are:

        LT
        Less than

        GT
        Greater than

        EQ
        Equal to

        NE
        Not equal to

        LE
        Less than or equal to

        GE
        Greater than or equal to

        LK
        Matches a generic string that you provide as a filter-value

        NL
        Does not match a generic string that you provide as a filter-value

      filter-value
      The value that the attribute value must be tested against using the operator. Depending on the filter-keyword, this can be:

      • An explicit value, that is a valid value for the attribute being tested.

        We can use operators LT, GT, EQ, NE, LE or GE only. However, if the attribute value is one from a possible set of values on a parameter, we can only use EQ or NE.

      • A generic value. This is a character string (such as the character string in the DESCR parameter) with an asterisk at the end, for example ABC*. If the operator is LK, all items where the attribute value begins with the string (ABC in the example) are listed. If the operator is NL, all items where the attribute value does not begin with the string ABC are listed. Only a single trailing wildcard character (asterisk) is permitted.

        We cannot use a generic filter-value for parameters with numeric values or with one of a set of values.

    ALL
    Specify this to display all the parameters. If this parameter is specified, any parameters that are also requested specifically have no effect; all parameters are still displayed.

    This is the default if you do not specify a generic name, and do not request any specific parameters.

    On z/OS this is also the default if we specify a filter condition using the WHERE parameter, but on other platforms only requested attributes are displayed.

    CMDSCOPE
    This parameter specifies how the command runs when the queue manager is a member of a queue sharing group. If QSGDISP is set to GROUP, CMDSCOPE must be blank or the local queue manager.

      ' '
      The command runs on the queue manager on which it was entered. This is the default value.

      qmgr-name
      The command runs on the queue manager you specify, providing the queue manager is active within the queue sharing group.

      We can specify a queue manager name, other than the queue manager on which the command was entered, only if we are using a queue sharing group environment and if the command server is enabled.

      *
      The command runs on the local queue manager and is also passed to every active queue manager in the queue sharing group. The effect of this is the same as entering the command on every queue manager in the queue sharing group.

    We cannot use CMDSCOPE as a filter keyword.

    PSID( integer )
    The page set identifier that a storage class maps to. This is optional.

    The string consists of two numeric characters, in the range 00 through 99. An asterisk (*) on its own specifies all page set identifiers. See DEFINE PSID on z/OS.

    QSGDISP
    Specifies the disposition of the objects for which information is to be displayed. Values are:

      LIVE
      This is the default value and displays information for objects defined with QSGDISP(QMGR) or QSGDISP(COPY).

      ALL
      Displays information for objects defined with QSGDISP(QMGR) or QSGDISP(COPY).

      If there is a shared queue manager environment, and the command is being executed on the queue manager where it was issued, this option also displays information for objects defined with QSGDISP(GROUP).

      If QSGDISP(ALL) is specified in a shared queue manager environment, the command might give duplicated names (with different dispositions).

      In a shared queue manager environment, use
      DISPLAY STGCLASS(generic-class) CMDSCOPE(*) QSGDISP(ALL)
      
      to list ALL objects matching
      name
      
      in the queue sharing group without duplicating those in the shared repository.

      COPY
      Display information only for objects defined with QSGDISP(COPY).

      GROUP
      Display information only for objects defined with QSGDISP(GROUP). This is allowed only if there is a shared queue manager environment.

      PRIVATE
      Display information only for objects defined with QSGDISP(QMGR) or QSGDISP(COPY).

      QMGR
      Display information only for objects defined with QSGDISP(QMGR).

    QSGDISP displays one of the following values:

      QMGR
      The object was defined with QSGDISP(QMGR).

      GROUP
      The object was defined with QSGDISP(GROUP).

      COPY
      The object was defined with QSGDISP(COPY).

    We cannot use QSGDISP as a filter keyword.


Requested parameters

Specify one or more parameters that define the data to be displayed. The parameters can be specified in any order, but do not specify the same parameter more than once.

The default, if no parameters are specified (and the ALL parameter is not specified) is the storage class names, their page set identifiers and queue sharing group dispositions are displayed.

    ALTDATE
    The date on which the definition was last altered, in the form yyyy-mm-dd.

    ALTTIME
    The time at which the definition was last altered, in the form hh.mm.ss.

    DESCR
    Descriptive comment.

    PASSTKTA
    The application name used to authenticate IMS bridge passtickets. A blank value indicates that the default batch job profile name is to be used.

    XCFGNAME
    The name of the XCF group that IBM MQ is a member of.

    XCFMNAME
    The XCF member name of the IMS system within the XCF group specified in XCFGNAME.

For more details of these parameters, see DEFINE STGCLASS on z/OS. Parent topic: MQSC commands