Examples of how to code the TAPECOPY command

The following examples present different ways to code the TAPECOPY command:

Note: Any values specified here are only examples and should not be interpreted as the values to be used for your system.

Specifying to copy all eligible cartridge-type single-file tape volumes

The following example illustrates how to make a copy of all the cartridge-type single-file migration and backup tapes that do not already have a copy:
   TAPECOPY ALL

Specifying to copy a set of tape volumes

The following example illustrates how to make a copy of more than one original volume on specific alternate volumes:
   TAPECOPY ORIGINALVOLUMES(JHG191,JHG195,JHG198)  +
            ALTERNATEVOLUMES(DBK001,DBK005,DBK008)

Specifying to copy a list of original volumes

This example illustrates using a data set containing a list of volumes to process that are to be retained until December 31, 2010. The expiration date for the alternate tape volume does not relate to when the tape volume is removed from the DFSMShsm inventory. In this example, if the original volume is removed from the DFSMShsm inventory after December 31, 2010, there can be an exposure to data loss.
   TAPECOPY INDATASET(G737495.VOLIST.DATA)  +
            EXPDT(2010365)

Specifying the TAPECOPY command with enhanced capacity cartridge support

The 3490E backup and migration volumes residing on standard tape cartridges are copied using the esoteric tape unit name ES1. Those backup and migration volumes residing on enhanced capacity cartridges are copied using the esoteric tape unit name ES2. The 18-track format cartridges are copied to units allocated using ES1.
   TAPECOPY BACKUP ALTERNATEUNITNAME(ES1, ES2)
All backup volumes are copied using esoteric tape unit name ES1, regardless of the type of cartridge (standard vs enhanced capacity). If only one unit is specified with ALTERNATEUNITNAME, it is the device type used for all TAPECOPY processing for backup volumes. In this case, potential exists for TAPECOPY failures if a 3490E backup volume is an enhanced capacity cartridge, and ES1 is an esoteric tape unit that is being used for output to standard tapes (for example, devices are preloaded with standard tapes).
   TAPECOPY BACKUP ALTERNATEUNITNAME(ES1)