ALTER STGCLASS on z/OS

Use the MQSC command ALTER STGCLASS to alter the characteristics of a storage class.


Use MQSC commands

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

Parameters not specified in the ALTER STGCLASS command result in the existing values for those parameters being left unchanged.

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: ALT STC


ALTER STGCLASS

ALTER STGCLASS ( storage class ) CMDSCOPE(' ')CMDSCOPE(qmgr-name)1CMDSCOPE(*)1DESCR(description)PASSTKTA(aname)PSID(integer)QSGDISP(QMGR)QSGDISP(COPY)QSGDISP(GROUP)1QSGDISP(PRIVATE)XCFGNAME(group-name)XCFMNAME(member-name)Notes:


Parameter descriptions for ALTER STGCLASS

    (storage-class)
    Name of the storage class.

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

    Note: Exceptionally, certain all numeric storage class names are allowed, but are reserved for the use of IBM service personnel.

    The storage class must not be the same as any other storage class currently defined on this queue manager.

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

      ' '
      The command runs on the queue manager on which it was entered.

      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 it was entered, only if we are using a shared queue 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 * is the same as entering the command on every queue manager in the queue sharing group.

    DESCR(description)
    Plain-text comment. It provides descriptive information about the object when an operator issues the DISPLAY STGCLASS command.

    It must contain only displayable characters. The maximum length is 64 characters. In a DBCS installation, it can contain DBCS characters (subject to a maximum length of 64 bytes).

    Note: If characters are used that are not in the coded character set identifier (CCSID) for this queue manager, they might be translated incorrectly if the information is sent to another queue manager

    PASSTKTA(application name)
    The application name that is passed to RACF when authenticating the PassTicket specified in the MQIIH header.

    PSID(integer)
    The page set identifier that this storage class is to be associated with. Note: No check is made that the page set has been defined; an error is raised only when you try to put a message to a queue that specifies this storage class (MQRC_PAGESET_ERROR).

    The string consists of two numeric characters, in the range 00 through 99. See DEFINE PSID on z/OS.

    QSGDISP
    Specifies the disposition of the object in the group.

    QSGDISP ALTER
    COPY The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(COPY). Any object residing in the shared repository, or any object defined using a command that had the parameters QSGDISP(QMGR), is not affected by this command.
    GROUP The object definition resides in the shared repository. The object was defined using a command that had the parameters QSGDISP(GROUP). Any object residing on the page set of the queue manager that executes the command (except a local copy of the object) is not affected by this command. If the command is successful, the following command is generated and sent to all active queue managers in the queue sharing group to attempt to refresh local copies on page set zero:
    DEFINE STGCLASS(storage-class)
    REPLACE QSGDISP(COPY)
    
    The ALTER for the group object takes effect regardless of whether the generated command with QSGDISP(COPY) fails.
    PRIVATE The object resides on the page set of the queue manager that executes the command, and was defined with QSGDISP(QMGR) or QSGDISP(COPY). Any object residing in the shared repository is unaffected.
    QMGR The object definition resides on the page set of the queue manager that executes the command. The object was defined using a command that had the parameters QSGDISP(QMGR). Any object residing in the shared repository, or any local copy of such an object, is not affected by this command.

    XCFGNAME(group name)
    If we are using the IMS bridge, this name is the name of the XCF group to which the IMS system belongs. (This name is the group name specified in the IMS parameter list.)

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

    XCFMNAME(member name)
    If we are using the IMS bridge, this name is the XCF member name of the IMS system within the XCF group specified in XCFGNAME. (This name is the member name specified in the IMS parameter list.)

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

Parent topic: MQSC commands