COPYTOCOPY

The COPYTOCOPY online utility makes image copies from an image copy that was taken by the COPY utility. The COPYTOCOPY utility can also make image copies from inline copies that the REORG or LOAD utilities make.

Start of changeStarting with the local primary copy or a recovery-site primary copy, or a copy created by using FlashCopy® technology, COPYTOCOPY can make up to four sequential format copies of one or more of the following types of copies: End of change

  • Local primary
  • Local backup
  • Recovery site primary
  • Recovery site backup

You can make both full and incremental image copies of a LOB or XML table space.

You cannot run COPYTOCOPY on concurrent copies.

The RECOVER utility uses the copies when recovering a table space or index space to the most recent time or to a previous time. These copies can also be used by MERGECOPY, UNLOAD, and possibly a subsequent COPYTOCOPY execution.

Output

Output from the COPYTOCOPY utility consists of:

  • Start of changeUp to three sequential data sets that contain the image copy. If the copy base is a FlashCopy, four sequential copies can be made.End of change
  • Up to three sequential data sets that contain the image copy.
  • Rows in the SYSIBM.SYSCOPY catalog table that describe the image copy data sets that are available to the RECOVER utility. Your installations responsible for ensuring that these data sets are available if the RECOVER utility requests them.

The entries for SYSCOPY columns remain the same as the original entries in the SYSCOPY row when the COPY utility recorded them. The COPYTOCOPY job inserts values in the columns DSNAME, GROUP_MEMBER, JOBNAME, AUTHID, DSVOLSER, and DEVTYPE.

Authorization required

To execute this utility, you must use a privilege set that includes one of the following authorities:

  • IMAGCOPY privilege for the database
  • DBADM, DBCTRL, or DBMAINT authority for the database. If the object on which the utility operates is in an implicitly created database, DBADM authority on the implicitly created database or DSNDB04 is required.
  • Start of changeSystem DBADM authorityEnd of change
  • SYSCTRL or SYSADM authority

An ID with installation SYSOPR authority can also execute COPYTOCOPY, but only on a table space in the DSNDB01 or DSNDB06 database.

Restrictions on running COPYTOCOPY

  • COPYTOCOPY does not support the following catalog and directory objects:
    • DSNDB01.SYSUTILX and its indexes
    • DSNDB01.DBD01 and its indexes
    • Start of changeDSNDB01.SYSDBDXA and its indexesEnd of change
    • DSNDB06.SYSCOPY and its indexes
  • An image copy from a COPY job with the CONCURRENT option cannot be processed by COPYTOCOPY.
  • COPYTOCOPY does not check the recoverability of an object.
  • COPYTOCOPY does not support a range of partitions within a partitioned table space. Specify individual DSNUM(n). From the inline copy, COPYTOCOPY copies only the specified partition into the output image copy data set.

Execution phases of COPYTOCOPY

The COPYTOCOPY utility operates in these phases:

Phase
Description
UTILINIT
Performs initialization
CPY2CPY
Copies an image copy
UTILTERM
Performs cleanup