Copy Program Temporary Fix to Save File (QPZCPYSV) API


  Required Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Copy Program Temporary Fix to Save File (QPZCPYSV) API allows you to copy all program temporary fixes (PTFs) for the selected product from the media and store them in *SERVICE. The PTFs can then be displayed, loaded, or copied using the PTF commands. PTF group information can also be copied in addition to the PTFs.

A save file is created in library QGPL for each PTF that is copied. You can use the Retrieve Program Temporary Fix Information (QPZRTVFX) API to obtain the name of the save file.

If the PTF already exists in *SERVICE, the PTF is not copied.

Cover letters are copied to file QAPZCOVER in library QGPL.


Authorities and Locks

Device
*USE

Library QGPL
*USE

Lock conflicts may occur if this API is called while another PTF or PTF group operation is in progress.


Required Parameter Group

Product information
INPUT; CHAR(*)

The information needed to put the PTF into the *SERVICE device.

Product information format name
INPUT; CHAR(8)

The name of the format that describes the product information. The only format name supported is:


Device name
INPUT; CHAR(10)

The name of the optical device or tape device that contains the PTFs to be copied.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


PTFV0100 Format

The following table describes the format for the product information parameter. The format identifies the product of the PTFs to be copied. For detailed descriptions of the fields, see Field Descriptions.



Field Descriptions

Automatically support product. Indicates that when a PTF for a product currently not supported or installed on the system is found on the media, the product automatically will be marked as supported and the PTF will be copied. If the PTF affects a National Language Version, only the primary language of the system will be supported automatically. You can use the Add or Remove Product Support (QSZSPTPR) API to add support for additional languages.

This field is ignored when *SUPPTD is specified in the product ID field.

Copy PTFs. Indicates which PTFs to copy. If this field is not specified, a value of 0 is assumed.


Copy PTF Groups. Indicates if the information for PTF groups are to be copied in addition to the PTFs. The PTF groups can then be displayed using the WRKPTFGRP command or retrieved using the QpzListPtfGroupDetails API. Note this field only applies when the Product ID field specifies *ALL or *SUPPTD.

The number of different levels of a PTF group of the same name that can exist on the system is controlled by the PTF group levels (PTFGRPLVL) parameter of the Change Service Attributes (CHGSRVA) command. When copying a PTF group with a new level, the PTFGRPLVL value indicates the maximum number of different levels of the PTF group that can exist on the system. The lowest levels of the PTF group will automatically be deleted, leaving only the highest levels of the PTF group on the system after the PTF group is copied.

If this field is not specified, a value of 0 is assumed.

Length of product information. The length of data in the product information format, including this field. The only valid values for this field are 18 or 20.

Product ID. The name of the licensed products for which PTFs are to be copied. You can use the following special values for the product ID:

Start of change

Release. The version, release, and modification of the product. A value other than *ALL is allowed only when a particular product is specified for the product ID field. The release can be passed as one of the following formats:

End of change

Error Messages



API introduced: V4R4

[ Back to top | Software Product APIs | APIs by category ]