Package Product Option (QSZPKGPO) API


  Required Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Package Product Option (QSZPKGPO) API packages one or more product loads for a specified product option. This enables the loads to be saved using the Save Licensed Program (SAVLICPGM) command. Object lists are added to the product load (*PRDLOD) object when the product load is packaged. In order to package a product load, all development libraries for the load must exist and all development folders for the load must exist. Also, all objects to be packaged must exist and all objects except folders and documents must have the following correct information in the object description:

The object description can be changed using the Change Object Description (QLICOBJD) API.

To package a product load that has folders, the user must be enrolled in the system distribution directory and have *ALL authority to the folders.

Other than these restrictions, a user who has authority to this API can package any product load created in either of the following ways. This is regardless of whether the user has authority to the objects for the product load.


Authorities and Locks

Authority to Folders
*ALL

Authority to Objects Packaged
None

Document Lock
*SHRRD. A lock of *SHRNUP is obtained on each document's attributes.

Table of Contents for Subordinate Folders Lock
*SHRNUP

Folder Lock
*SHRUPD

Object Lock
*EXCLRD. If *NO is specified for the allow object change parameter, each object packaged is locked *EXCLRD.

Product Availability Lock
*SHRRD

Product Definition Lock
*EXCLRD

Product Load Lock
*EXCLRD

Object Lock
Each object in each of the product load's libraries is locked as follows:
  • Message queues are locked *EXCLRD.
  • All other object types are locked *SHRRD.

Required Parameter Group

Product option information
INPUT;CHAR(35)

The product loads to be packaged. For more information, see Product Option Information Format.

Repackage
INPUT; CHAR(4)

Whether or not to package product loads that were already packaged.


Allow object change
INPUT; CHAR(5)

Whether to prevent changes to the product information in the object description of each object added to an object list. You can change the allow change by program attribute by using the allow change by program field of the Change Object Description (QLICOBJD) API. See the allow change by program field in the QLICOBJD API for more information.


Error code
I/O; CHAR(*)

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


Product Option Information Format

The following describes the product option information parameter. For a detailed description of the fields in this table, see Field Descriptions.



Field Descriptions

Load ID. Specifies which loads to package. Load IDs are 4 characters in length; for example, 2924 is the load ID for an English National Language Version (NLV).

The following special values are valid:

Product ID. The product ID of the product option to be packaged.

Product option. The product option to be packaged. Use 0000 for the base option. Valid values are 0000 through 0099, where each character is a digit.

Release level. The version, release, and modification level of the product.

Start of change

The release level can be passed as one of the following formats:

End of change

Reserved. This field must contain blanks; otherwise, an error occurs.


Error Messages



API introduced: V2R3

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