Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LICPGM | Product | Character value | Required, Positional 1 |
FROMDEV | From device | Name, *SERVICE, *SAVF | Required, Positional 2 |
TODEV | To device | Name, *SAVF | Required, Positional 3 |
SELECT | PTF numbers to select | Single values: *ALL Other values (up to 50 repetitions): Character value |
Optional, Positional 4 |
OMIT | PTF numbers to omit | Values (up to 50 repetitions): Character value | Optional |
RLS | Release | Character value, *ONLY | Optional |
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 |
FROMPATHID | From path identifier | 1-9999, *FIRST, *SELECT | 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 |
COVER | Copy PTF cover letter | *YES, *NO | Optional |
CVRLTRLNG | Cover letter language | Character value, *ONLY | Optional |
DTACPR | Data compression | *DEV, *NO, *YES | Optional |
Top |
Specifies the 7-character identifier of the product for which the PTFs are copied.
This is a required parameter.
Top |
Specifies the name of the device from which the PTFs are copied.
This is a required parameter.
Top |
Specifies the device to which the PTFs are copied.
This is a required parameter.
Top |
Specifies which PTFs are copied. If individual PTFs are specified, a value cannot be specified for the PTF numbers to omit (OMIT) parameter.
You can enter multiple values for this parameter.
The possible values are:
Top |
Specifies that all PTFs except for those specified in this parameter are copied. Specify the PTF numbers of the programming fixes not copied when all the rest are copied. A maximum of 50 PTF numbers can be specified. This parameter cannot be specified if single PTF numbers are specified in the PTF numbers to select (SELECT) parameter.
You can enter multiple values for this parameter.
Top |
Specifies the release level of the software product.
The possible values are:
Top |
Specifies the name and library of the save file from which the PTFs 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 PTFs 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 PTF 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 number that identifies a file on the optical media that contains the PTFs to be copied. The PTF files for each product and release that exist on the optical media have a path identifier number to allow the files to be processed in a specific order. Only the PTFs from the specified path identifier are copied on your system.
Note: This parameter is valid only if an optical device name is specified on the From device (FROMDEV) parameter.
The possible values are:
Top |
Specifies the volume identifier of the tape, diskette or optical volume that receives the copied PTFs.
Note: This parameter is valid only if a tape, diskette, or optical device name is specified on the To device (TODEV) parameter.
Top |
Specifies the sequence number of the data file that receives the copied PTFs.
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 PTF 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 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 PTFs are copied.
The possible library values are:
Top |
Specifies whether uncleared save files encountered while copying the PTFs are automatically cleared.
Note: This parameter is valid only if *SAVF is specified on the To device (TODEV) parameter.
Top |
Specifies whether to copy the cover letter with the PTF. Cover letters will not be copied if the FROMDEV or TODEV parameter specifies a diskette device or if FROMDEV(*SERVICE) is specified with more than 1 PTF (SELECT parameter).
Top |
Specifies the cover letter language of the PTF to be copied. If FROMDEV(*SERVICE) is specified and there are multiple cover letters for a PTF (multiple languages), specify the language feature code of the cover letter you want to copy.
Note: This parameter is valid only if *YES is specified on the Copy PTF cover letter (COVER) parameter.
Top |
Specifies whether data compression is used.
The possible values are:
Top |
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.
Top |
*ESCAPE Messages
Top |