Transferring a library to a different auxiliary storage pool

Use this procedure to move a library to a different auxiliary storage pool (ASP).

This example moves the CUSTLIB library from ASP 1 to ASP 2.

  1. Sign on as QSECOFR.
  2. Save the library and its private authorities:
    
    SAVLIB  DEV(device-name) LIB(library-name) 
            ASPDEV(asp1) PVTAUT(*YES)
  3. Delete the library: DLTLIB LIB(CUSTLIB)
  4. Restore the library and its private authorities to the new ASP:
    
    RSTLIB  DEV(device-name) SAVLIB(library-name)
            RSTASPDEV(asp2) PVTAUT(*YES)

As an alternative to the preceding method, you can consider using the Move Library to ASP (QHSMMOVL) application programming interface (API) to transfer the library to a different ASP. The QHSMMOVL API handles object authorities as part of the library transfer process. You cannot use the QHSMMOVL API for libraries that contain journals, journal receivers, or objects that are journaled.