Manual procedure

You can use the following procedure to change the default storage class, management class, or both for an existing object storage group's collection ID.

  1. Delete the collection definition from the catalog:
    DELETE COLLECTION_NAME NONVSAM CATALOG ('CATALOG_NAME') —
            FILE (DD1)  PURGE NOSCRATCH

    _______________________________________________________

  2. Change the storage class, or management class, or both in the DB2 collection table to the desired value.

    Ensure that these values in the SMS CDS are valid.

    _______________________________________________________

  3. Add the collection entry back to the catalog:
    DEFINE NVSAM (NAME(COLLECTION_NAME) COLLECTION RECATALOG)

    This creates a collection entry without a management or storage class.

    _______________________________________________________

  4. Use OSREQ RETRIEVE to retrieve an existing object in the collection, or OSREQ STORE to store a new object into the collection. This command updates the catalog version.

    _______________________________________________________

  5. Verify that the catalog matches DB2.
    LISTCAT ENTRIES('collection_name') ALL

    _______________________________________________________

The new default storage class, or management class, or both only applies to new objects stored after these changes are complete.

For details on using the OSREQ macro, see z/OS DFSMS OAM Application Programmer's Reference.