Using more than one COPYTOCOPY statement

You can use more than one control statement for COPYTOCOPY in one Db2 utility job step.

About this task

After each COPYTOCOPY statement executes successfully:

  • A row referring to the image copy is recorded in SYSIBM.SYSCOPY table.
  • The image copy data set is valid and available for RECOVER, MERGECOPY, COPYTOCOPY, and UNLOAD.

If a job step that contains more than one COPYTOCOPY statement abnormally terminates, do not use TERM UTILITY. Restart the job from the last commit point by using RESTART instead. Terminating COPYTOCOPY in this case might cause inconsistencies between the ICF catalog and Db2 catalogs if generation data sets are used.