| Required Parameter Group:
Threadsafe: No |
The Retrieve License Information (QLZARTV) API returns license information about a software product. The license information returned depends on the format specified.
The variable to receive the requested license information.
The length of the receiver variable provided. The length of receiver variable parameter may be specified up to the size of the receiver variable specified in the user program. If the length of receiver variable parameter specified is larger than the allocated size of the receiver variable specified in the user program, the results are not predictable. The minimum length is 8 bytes.
The name of the format that identifies the type of license information to be retrieved. The supported formats are:
Information that uniquely identifies the product or feature whose license information will be retrieved. The structure of this information is determined by the name of the format.
The name of the format that describes the product identification. The only format name supported is:
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | CHAR(7) | Product ID |
| 7 | 7 | CHAR(6) | Release level |
| 13 | D | CHAR(4) | Feature |
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Usage limit |
| 4 | 4 | BINARY(4) | Usage count |
| 8 | 8 | CHAR(2) | Usage type |
| 10 | A | CHAR(2) | Compliance type |
| 12 | C | CHAR(6) | License term |
| 18 | 12 | CHAR(6) | Release level |
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Bytes returned |
| 4 | 4 | BINARY(4) | Bytes available |
| 8 | 8 | BINARY(4) | Usage limit |
| 12 | C | BINARY(4) | Usage count |
| 16 | 10 | CHAR(2) | Usage type |
| 18 | 12 | CHAR(2) | Compliance type |
| 20 | 14 | CHAR(6) | License term |
| 26 | 1A | CHAR(6) | Release level |
| 32 | 20 | BINARY(4) | Threshold value |
| 36 | 24 | BINARY(4) | Grace period |
| 40 | 28 | CHAR(7) | Date grace period expires |
| 47 | 2F | CHAR(3) | Processor group |
| 50 | 32 | CHAR(2) | Reserved |
| 52 | 34 | BINARY(4) | Peak usage |
| 56 | 38 | CHAR(7) | Expiration date |
| 63 | 3F | CHAR(8) | Vendor data |
| 71 | 47 | CHAR(16) | Product license information handle |
| 87 | 57 | CHAR(1) | Reserved |
| 88 | 58 | BINARY(4) | Offset to message queue list |
| 92 | 5C | BINARY(4) | Number of message queues |
| 96 | 60 | BINARY(4) | Offset to current license user list |
| 100 | 64 | BINARY(4) | Number of current license users |
| 104 | 68 | BINARY(4) | Length of each current license user record |
| 108 | 6C | CHAR(*) | Reserved |
| Note: Offsets vary depending on the number of message queues in the list. | |||
| CHAR(10) | Message queue name | ||
| CHAR(10) | Message queue library name | ||
| Note: Offsets vary depending on the number of current license users and the length of each current license user record. | |||
| CHAR(*) | List of current license users | ||
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Bytes returned |
| 4 | 4 | BINARY(4) | Bytes available |
| 8 | 8 | BINARY(4) | Usage limit |
| 12 | C | BINARY(4) | Usage count |
| 16 | 10 | CHAR(2) | Usage type |
| 18 | 12 | CHAR(2) | Compliance type |
| 20 | 14 | CHAR(6) | License term |
| 26 | 1A | CHAR(6) | Release level |
| 32 | 20 | BINARY(4) | Threshold value |
| 36 | 24 | BINARY(4) | Grace period |
| 40 | 28 | CHAR(7) | Date grace period expires |
| 47 | 2F | CHAR(3) | Processor group |
| 50 | 32 | CHAR(2) | Reserved |
| 52 | 34 | BINARY(4) | Peak usage |
| 56 | 38 | CHAR(7) | Expiration date |
| 63 | 3F | CHAR(8) | Vendor data |
| 71 | 47 | CHAR(16) | Product license information handle |
| 87 | 57 | CHAR(1) | Reserved |
| 88 | 58 | BINARY(4) | Offset to message queue list |
| 92 | 5C | BINARY(4) | Number of message queues |
| 96 | 60 | BINARY(4) | Offset to current license user list |
| 100 | 64 | BINARY(4) | Number of current license users |
| 104 | 68 | BINARY(4) | Length of each current license user record |
| 108 | 6C | BINARY(4) | Length of each license user |
| 112 | 70 | CHAR(*) | Reserved |
| Note: Offsets vary depending on the number of message queues in the list. | |||
| CHAR(10) | Message queue name | ||
| CHAR(10) | Message queue library name | ||
| Note: Offsets vary depending on the number of current license users and the length of each current license user record. | |||
| BINARY(4) | Number of uses held | ||
| CHAR(*) | License user | ||
| CHAR(*) | Reserved | ||
Bytes returned. The number of bytes of data returned.
Compliance type. The compliance type associated with this license. The compliance type determines the action taken when the value of the usage limit field is exceeded. The valid values are:
Grace period. The number of days after a product first exceeds its usage limit that a user has to obtain a new license key. Before the grace period expires, a new license key needs to be obtained from the software vendor. If this is not done, users exceeding the usage limit are not allowed access to the product or feature. The date the grace period expires is calculated by adding the number of days in the grace period to the current date.
Length of each current license user record. The length of each current license user record. This is the length of the license user plus the length of any additional license user information.
Length of each license user. The length of each license user. This is the same value that is used during the request and release of this product. This may be a value of 1 through 80.
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 doing each of the following:
License user. A user that currently holds one or more uses of the product or feature.
List of current license users. A list of all the current users of the product.
Message queue library name. The library where the message queue resides.
Message queue name. The name of message queue.
Number of current license users. The number of current license users in the list.
Number of message queues. The number of message queues in the list.
Number of uses held. The number of license uses held by this license user.
Offset to current license user list. The offset from the beginning of the receiver variable to the start of the first current license user. This offset is 0 if there are no license users or if the size of the receiver variable is not large enough to hold any license users.
Offset to message queue list. The offset from the beginning of the receiver variable to the start of the first message queue name and library. This offset is 0 if there are no message queues or if the size of the receiver variable is not large enough to hold any message queues.
Peak usage. The maximum number of license users that have accessed the product or feature at one time. The peak usage may be reset using option 10 of the Work License Information (WRKLICINF) command.
Processor group. The processor group of this system. A processor group is the grouping of system model numbers by relative processor size.
Product ID. The product ID of the product or feature whose license information is to be retrieved.
Product license information handle. The product information handle is passed back. It may be used within the application to verify that the product attributes are the same as the original license information created by the software provider. This handle will not be stored and will be generated each time license information is retrieved.
Release level. The version, release, and modification level of the product whose license information was requested. This is returned in the receiver variable parameter. If you specified *ONLY in the release field of the LICP0100 format, the actual release level is returned here.
Reserved. If this field is input, character fields must be set to blanks and binary fields must be set to hexadecimal zeros.
Threshold value. The threshold for this product or feature.
The threshold indicates you want a message sent to the system operator message queue stating that a product or feature is reaching the usage limit.
Usage limit. The usage limit for this license.
|
Top
| Software Product APIs-
Software Product API list | APIs by category |
| [ Information Center Home Page ] | [ Legal | AS/400 Glossary ] |