Add Product License Information (QLZADDLI) API


  Required Parameter Group:


  Optional Parameter Group:


  Default Public Authority: *EXCLUDE

  Threadsafe: No

The Add Product License Information (QLZADDLI) API adds license information to a product or a feature of a product. License information can be added at two times:

License information must be added before the product is installed.


Authorities and Locks

API QLZADDLI Authority
QPGMR(*USE)
QSRV(*USE)
QSRVBAS(*USE)
QSYSOPR(*USE)
Product Availability Lock
*SHRRD. The product availability object is in the QUSRSYS library.
Public Authority
*EXCLUDE

Required Parameter Group

Product identification
INPUT; CHAR(*)

Information that uniquely identifies the product or feature to which license information will be added. The structure of this information is determined by the name of the format. For more information, see LICP0100 Format and LICP0200 Format.

Product identification format name
INPUT; CHAR(8)

The name of the format containing the information to identify the product.

The format names are:


License information
INPUT; CHAR(*)

Information that is used to license the product or feature. The structure of this information is determined by the name of the format. For more information, see LICI0100 Format and LICI0200 Format.

License information format name
INPUT; CHAR(8)

The name of the format containing the license information.

The format names are:


Error code
I/O; CHAR(*)

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


Optional Parameter Group

Product license information handle
OUTPUT; CHAR(16)

A handle based on the product license information. This handle can be used by the software vendor to help ensure asset protection. Specifically, it makes sure that no unauthorized changes were made to the license information. This handle can be used in conjunction with the Retrieve License Information (QLZARTV) API. The information retrieved by the QLZARTV API includes the product license information handle of the product and license information currently installed on the system. If this handle does not match the one returned by this command or API, then the product has been tampered with. It is suggested that this handle be retrieved and checked before doing a request or release when using keyed compliance. This handle is only returned if the product has keyed compliance.


LICP0100 Format

The following information uniquely describes the product or feature for which the license information is to be added. For detailed descriptions of the fields, see Field Descriptions.



LICP0200 Format

The following information uniquely describes the product or feature for which the license information is to be added. It also includes the message identifier of the specified feature. For detailed descriptions of the fields, see Field Descriptions.



LICI0100 Format

The following specifies the format for the license information that is being added to the product or feature. The allow default usage grace period, vendor password, and grace period fields must be specified if the compliance type is 03. For a compliance type of 01 or 02, these fields do not have to be specified. For detailed descriptions of the fields, see Field Descriptions.



LICI0200 Format

The following specifies the format for the license information that is being added to the product or feature. The allow default usage grace period, vendor password, grace period, and count across logical partitions fields must be specified if the compliance type is 03. For a compliance type of 01 or 02, these fields do not have to be specified. For detailed descriptions of the fields, see Field Descriptions.



Field Descriptions

Allow default usage limit grace period. Whether a grace period should be allowed on the default usage limit. If allowed, the default usage limit could be exceeded for the number of days in the grace period for the product or feature. The default usage limit is the number of users that are able to use the product or feature before the license key is installed. Thus, an unlimited number of users can use the product or feature for the number of days in the grace period without having a key.

Allow a license to be released. Whether a use of the license that was previously requested can be released using the Work with License Information (WRKLICINF) command. When a use of the license is released, the usage count is decremented. This value can only be specified for a usage type of registered.

The valid values are:

Compliance. The action taken when the usage limit is exceeded.

The valid values are:

Count usage across logical partitions. Whether usage is counted across logical partitions.

Default usage limit. The usage limit in effect when the product or feature is initially installed.

The valid values are:

Note: For keyed compliance, this is the number of users that will be able to use the product or feature before the license key is installed using the Add License Key command (ADDLICKEY) or API (QLZAADDK). Therefore, to prevent any access to the product or feature without a key, the default usage limit must be set to 0. Also, 0 must be specified for the allow default usage limit grace period.

Feature. The feature of the product to which the license information is being added. Valid values for the feature are 5001 through 9999.

Feature message ID. The message identifier for the message that describes the specified product or feature. If a message ID is not specified, the message identifier used to describe the base product option is used.

Grace period. The number of days after a product first exceeds its usage limit that a user has to obtain a new license key. If a new license key is not obtained from the software provider by the time the grace period is expired, no users over the usage limit are allowed to access the product or feature. When the usage limit is first exceeded, the date the grace period expires is calculated by adding the number of days in the grace period to the current date. Valid values for the grace period are 0 through 999.

During the grace period, the number of users able to use the product or feature is restricted to 50% greater than the current usage limit.

License term. The length of time the authorized usage limit for a product lasts.

The valid values are:

Product ID. The product ID of the product or feature to which the license information is being added.

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

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

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

Usage type. The type of license usage.

The valid values are:

Vendor password. The software vendor's password. This password is encrypted, stored with the product, and is used in validating Add License Key (ADDLICKEY) requests. It must be the same password that is used to generate keys for this product and feature on the Generate License Key command or API. The password must begin with an alphabetic character (A through Z, $, #, or @) followed by no more than 9 alphameric characters (A through Z, 0 through 9, $, #, @, or _).


Error Messages



API introduced: V2R3

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