CL Command Reference - CPYPTFGRP

CL Command List > CPYPTFGRP Reference

Description:

The Copy Program Temporary Fix Group (CPYPTFGRP) command copies program temporary fix (PTF) groups from tape, optical, save file, or service, to tape, optical, save file, or service. The PTF group information is copied to the specified device. The PTFs named within the PTF group can also be copied using the CPYPTF parameter. The Work with PTF Groups (WRKPTFGRP) command can be used to display and work with a list of PTF groups on the system.

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.


Examples:

Example 1: Copying a PTF Group to a Save File

CPYPTFGRP PTFGRP(SF99100) FROMDEV(*SERVICE) TODEV(*SAVF)
TOSAVF(MYLIB/MYSAVF)

This command copies the PTF group named SF99100 from the system to a save file named MYSAVF in library MYLIB. Related PTF groups named in SF99100 are not copied.



Example 2: Copying a PTF Group to a Tape

CPYPTFGRP PTFGRP(SF99200) FROMDEV(*SERVICE) TODEV(TAP01)
TOSEQNBR(1) RELPTFGRP(*YES) CPYPTF(*YES)

This command copies the PTF group named SF99200 and all of its related PTF groups from the system to the tape mounted in device TAP01 beginning with sequence number 1. All PTFs named within the PTF groups are copied to the tape. Cover letters are copied for the PTFs using the default language feature code.



Example 3: Copying All PTF Groups from Optical

CPYPTFGRP PTFGRP(*ALL) FROMDEV(OPT01) TODEV(*SERVICE)
REPLACE(*YES)

This command copies all the PTF groups from the volume mounted on optical device OPT01 to the system. Any PTF groups that already exist on the system are replaced.



Example 4: Copying a PTF Group from Tape to Save File

CPYPTFGRP PTFGRP(SF99300) FROMDEV(TAP01) TODEV(*SAVF)
TOSAVF(MYLIB/MYSAVF)

This command searches the tape mounted on device TAP01 and copies PTF group SF99300 to save file MYSAVF in library MYLIB.