Create Product Definition (QSZCRTPD) API


  Required Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Create Product Definition (QSZCRTPD) API creates a product definition (*PRDDFN) object. Each release of a packaged software product requires one product definition.


Authorities and Locks

Library Authority
*ADD and *READ

Library Lock
*SHRUPD

Product Availability Lock
*SHRRD. The product availability object resides in the QUSRSYS library.

Required Parameter Group

Qualified product definition name
INPUT; CHAR(20)

The first 10 characters contain the product definition name. The second 10 characters contain the name of the library into which the product definition is to be created.

The following special value is supported for the library name:


Product definition information
INPUT; CHAR(106)

A structure containing information about the product. For more information, see Format of Product Definition Information.

Product option list
INPUT; ARRAY of CHAR(41)

An array containing information for each of the options defined for the product. Each element of the array contains information for one option. There must be one element of the array for each option. The first element of the array must be for the base (0000) option. The required data for the product option list is described in Format of Product Option List.

Number of product options
INPUT; BINARY(4)

The number of options defined for the product. This number is the same as the number of elements in the product option list parameter. Up to 100 product options can be specified. If the number of elements in the product option list is less than the value specified, the results are unpredictable.

Language load list
INPUT; ARRAY of CHAR(20)

Specifies which languages are defined for the product options. The required data for the language load list is described in Format of Language Load List.

Number of language loads
INPUT; BINARY(4)

The number of elements in the language load list parameter. If the number of elements in the language load list parameter is less than the value specified, the results are unpredictable. The valid range is 1 to 139.

Text description
INPUT; CHAR(50)

Text that briefly describes the product definition object.

Public authority
INPUT; CHAR(10)

The authority you give to users who do not have specific authority to the product definition object and whose group profile has no specific authority to the object.

Valid values are:


Error code
I/O; CHAR(*)

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


Format of Product Definition Information

The following table describes the order and format of the product definition information parameter. For detailed descriptions of fields in the table, see Field Descriptions.



Format of Product Option List

Up to 100 product options can be specified. The first option specified must be 0000 (the base option). The product option list parameter is described in the table below. The offsets shown in the table are for the first element in this array. For detailed descriptions of fields in the table, see Field Descriptions.



Format of Language Load List

Up to 40 language loads can be specified for the base (0000) option. A maximum of 139 total can be specified. The language load list field is described in the table below. The offsets shown in the table are for the first element in this array. For detailed descriptions of fields in the table, see Field Descriptions.



Field Descriptions

Allow dynamic naming. Allow libraries and root folders to be named during installation of the product option.

Valid values are:

Allow multiple releases. Allow different releases of this product to be installed on the same system.

Valid values are:

Code load ID. The identifier of the code load for the option. Valid values are 5001 through 9999. For all product options that are part of the same feature, specify the same code load ID. If you are not adding license information to your product, you should use 5001 for the code load ID for each option. The code load ID you specify for this option must be the same as the load ID specified when you create the code product load for this option. See Create Product Load (QSZCRTPL) API for information about creating product loads.

Current copyright. The year of the most recent copyright for this product. The year must be specified as a 4-digit number, such as 1990. The field must be padded with blanks. If this field and the first copyright field have values other than *NONE, the first copyright field must be less than the current copyright field.

The following special values are valid:

First copyright. The first year that the product was copyrighted. The year must be specified as a 4-digit number, such as 1990. The field must be padded with blanks.

The following special values are valid:

Language load ID. The national language versions (NLVs) that are valid for a given product option. Individual NLVs may be specified for the base option, with one element of the language load list parameter for each NLV for the base option. For options other than the base option, only *BASEOPT and *NONE are valid. For example, to create a product definition with NLVs 2924 and 2931 defined for both the base option and option 1, the language load list would have three elements:

Valid special values are:

Message file. The name of the message file containing the messages that describe the product and its options. The message file for the base option is considered the message file for the product.

Message ID. The identifier of the message that describes the product option.

Product ID. The 7-character identifier of the product for which a product definition is being created. The product ID must be in the format nlxxxxx, where n is any numeric character 0 through 9. The l is any uppercase letter A through Z, and x is any numeric character 0 through 9 or uppercase letter A through Z.

Product option number. The identifier of the product option.

When used in the product option list parameter, valid values are 0000 through 0099, with each number specified at most once. Specify 0000 for the base product option. The value 0000 must be the first option specified.

When used in the language load list parameter, this is the identifier for the product option for which NLVs are being defined. This must be one of the options specified on the product option list parameter.

Registration ID type. Specifies what the registration ID value field represents.

Valid values are:

Registration ID value. The identifier of the organization to which the product belongs. This number should be unique from other vendors on the systems on which this product will be installed. It is recommended you specify a telephone number (including the country or region code and city code) or your IBM customer number appended to your country or region code. Valid characters for the registration ID value are A through Z and 0 through 9, padded with blanks on the right.

Release date. Release date of the product. The format is yymmdd, where yy is the year, mm is the month, and dd is the day.

The following special value is valid for the release date:

Release date century. The century that corresponds to the release date of the product. This field is ignored if *NONE is specified for release date.

Possible values follow:

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

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

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


Error Messages



API introduced: V4R4

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