Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
PTFGRP | PTF group | Character value, *ALL | Required, Positional 1 |
FROMDEV | From device | Name, *SERVICE, *SAVF | Required, Positional 2 |
TODEV | To device | Name, *SERVICE, *SAVF | Required, Positional 3 |
FROMSAVF | From save file | Qualified object name | Optional |
Qualifier 1: From save file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
FROMSEQNBR | From tape sequence number | 1-16777215, *SEARCH | Optional |
FROMENDOPT | From end of media option | *REWIND, *LEAVE, *UNLOAD | Optional |
TOVOL | Volume identifier | Character value, *MOUNTED | Optional |
TOSEQNBR | To tape sequence number | 1-16777215, *END | Optional |
TOENDOPT | To end of media option | *REWIND, *LEAVE, *UNLOAD | Optional |
TOSAVF | To save file | Qualified object name | Optional |
Qualifier 1: To save file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CLEAR | Clear | *NONE, *ALL | Optional |
REPLACE | Replace | *LVLGT, *NO, *YES | Optional |
RELPTFGRP | Copy related PTF groups | *NO, *YES | Optional |
DTACPR | Data compression | *DEV, *NO, *YES | Optional |
CPYPTF | Copy PTFs | *NO, *YES | Optional |
RPLSPR | Replace superseded PTFs | *YES, *NO | Optional |
COVER | Copy PTF cover letter | Character value, *DFT, *NONE | Optional |
Top |
Specifies the name of the PTF group(s) to be copied.
This is a required parameter.
Top |
Specifies the name of the device that contains the PTF groups to be copied.
This is a required parameter.
Top |
Specifies the device to which the PTF groups are copied.
This is a required parameter.
Top |
Specifies the name and library of the save file from which the PTF groups are copied.
Note: This parameter is valid only if *SAVF is specified on the From device (FROMDEV) parameter.
The possible library values are:
Top |
Specifies the sequence number on the tape volume from which the PTF groups are copied.
Note: This parameter is valid only if a tape device name is specified on the From device (FROMDEV) parameter.
Top |
Specifies the operation that is performed on the tape or optical volume after the copy operation ends. If one or more volumes of tape are involved, this parameter applies only to the last volume.
Note: This parameter is valid only if a tape or optical device name is specified on the FROMDEV parameter. For optical devices, *UNLOAD is the only special value supported, *REWIND and *LEAVE will be ignored.
The possible values are:
Top |
Specifies the volume identifier of the tape or optical volume that receives the copied PTF groups.
Top |
Specifies the sequence number of the data file that receives the copied PTF group.
Note: This parameter is valid only if a tape device name is specified on the To device (TODEV) parameter.
Top |
Specifies the operation that is performed on the tape or optical volume after the copy operation ends. If one or more volumes of tape are involved, this parameter applies only to the last volume.
Note: This parameter is valid only if a tape or optical device name is specified on the To device (TODEV) parameter. For optical devices, *UNLOAD is the only special value supported, *REWIND and *LEAVE will be ignored.
The possible values are:
Top |
Specifies the name and library of the save file to which the PTF groups are copied.
Note: This parameter is valid only if *SAVF is specified on the To device (TODEV) parameter.
The possible library values are:
Top |
Specifies whether an uncleared save file is automatically cleared while copying the PTF groups. This parameter applies only when TODEV(*SAVF) is specified.
Top |
Specifies what to do if a PTF group being copied already exists on the system. If a PTF group does not already exist on the system, it will be copied. This parameter applies only when TODEV(*SERVICE) is specified.
Top |
Specifies whether to copy related PTF groups. This parameter applies only when FROMDEV(*SERVICE) is specified.
Top |
Specifies whether data compression is used.
The possible values are:
Top |
Specifies whether to copy PTFs named within the specified PTF group in addition to the PTF group information. This parameter applies only when FROMDEV(*SERVICE) is specified and a tape or optical device name is specified on the TODEV parameter.
Top |
Specifies whether to replace PTFs or requisites of PTFs named within the specified PTF group. A PTF can be replaced if a save file is not found and a superseding PTF with a save file exists on the system. This parameter applies only when CPYPTF(*YES) is specified.
Top |
Specifies whether to copy the cover letters with the PTFs. This parameter applies only when CPYPTF(*YES) is specified.
The language feature code that matches the service contact information (WRKCNTINF) will be used.
If no language feature code matches the service contact information, the language feature code that matches the primary language of the operating system will be used.
If no cover letters match the language feature code in the service contact information, or the language feature code of the operating system, no cover letter is copied for the PTF.
Top |
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.
Top |
*ESCAPE Messages
Top |