CL Command Reference - CPYPTF

CL Command List > CPYPTF Reference

Description:

The Copy Program Temporary Fix (CPYPTF) command copies specified program temporary fixes (PTFs) from tape, diskette, optical media, service, or save file to a tape, diskette, optical media, or save file. Each PTF contains one or more objects, including programs, which can be loaded by the Load Program Temporary Fix (LODPTF) command and applied to a product by the Apply Program Temporary Fix (APYPTF) command.

Restrictions:

1. This command is shipped with public *EXCLUDE authority and the QPGMR, QSYSOPR, QSRV, and QSRVBAS user profiles have private authorities to use the command.

2. If the PTF being copied does not have a target release or if the specified target release is not a valid save and restore release, the PTF will be copied to the earliest valid save and restore target release for the PTF objects.



Examples:

Example 1: Copying PTFs to a Save File

CPYPTF LICPGM(5722SS1) FROMDEV(TAP01)
TODEV(*SAVF) SELECT(*ALL) TOSAVF(MYLIB/PTFFILE)

This command copies all the PTFs from a tape named TAP01 into a save file named PTFFILE for the product 5722SS1.



Example 2: Copying PTFs from an optical device

CPYPTF LICPGM(5722SS1) FROMDEV(OPT01) TODEV(TAP01)
SELECT(*ALL) FROMPATHID(2) RLS(*ONLY)

This command copies all the PTFs for product 5722SS1 that exist in the file with path identifier 0002 from the optical device named OPT01 to the tape device named TAP01.