Add License Key Information (QLZAADDK) API


  Required Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Add License Key Information (QLZAADDK) API allows you to add license key information to the license repository. The license repository is used to store license key information. It contains a record for each license for every unique product, license term, feature, and system. The repository may contain licenses for any system, and the product does not need to be installed.

If a key already exists in the repository for the given product, license term, feature, and system, it is replaced. If the product is installed on the system and the license is for that system, the license is also installed. That is, the usage limit is changed from the product's default usage limit to the licensed usage limit. The expiration date is also set based on the license key.

If this is the first license key added for this product, the threshold is set to 90 percent of the usage limit. Message queues default to the message queues defined in the licensed information for the operating system. Violations are not logged. If a license was already installed on the system, these values are not changed. To change any of these default values, you must use the Change License Information (CHGLICINF) command.


Authorities and Locks

API QLZAADDK Authority
*PUBLIC(*EXCLUDE)

Required Parameter Group

License key information
INPUT; CHAR(*)

The license key information that is to be added to the repository. The structure of this information is determined by the name of the format.

License key information format name
INPUT; CHAR(8)

The name of the format containing the license key information.

The format name is:


Number of license key records added
OUTPUT; BINARY(4)

The number of license key records that were successfully added to the repository.

Error code
I/O; CHAR(*)

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


LICA0100 Format

The following is the license information which is to be added to the repository. For detailed descriptions of the fields, see Field Descriptions.



Field Descriptions

Expiration date. The date the license will expire.

The valid values are:

Feature. The feature of the product. Valid values for the feature are 5001 through 9999.

License key. The license key provided by the vendor. The license key contains only the letters A - F and the numbers 0 - 9.

License term. The extent of time the authorized usage limit for a product lasts. Each time a new license term is installed for a product, the authorized usage limit must be set by:

Possible values are:

Start of change

Where the x and y can be a number from 0 through 9. Z can be a number 0 through 9 or a letter A through Z.

Where vv are any numeric characters 00 through 35 representing the version of the product, rr are any numeric characters 00 through 35 representing the release of the product, and mm can be 00 through 09 or 0A through 0Z representing the modification of the product.

End of change

Number of license key records in list. The number of license key records in the list.

Offset to the first license key record. The byte offset from the beginning of the license key information variable to the start of the license key information records.

Processor group. The processor group that this license is for. This field is left justified.

The valid special value is:

Product ID. The product ID of the product or feature for which license key information is to be added to the repository.

Reserved. If this field is input, character fields must be set to blanks and binary fields must be set to hexadecimal zeros.

Size of license key record. The size of each license key record. This field can be used to get the offset of the next license key record.

Size of structure. The size of the entire data passed in on this parameter.

System serial number. The system serial number for which license key information is added to the repository.

The valid special value is:

The special values are left justified. A value other than a special value must be right justified.

Usage limit. The usage limit for this license.

Vendor data. The data for this field, along with the license key information, comes from the software provider.


Error Messages



API introduced: V3R1

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