Command reference / sys

ADDLICKEY

Add License Key Information

Stores a software license key in the license repository for a product that uses keyed compliance.

Allowed environments: *ALL. Positional parameters: 4.

Parameters

LICKEYINP License key input

Select how the software license key information to be added is supplied.

Type
*CHAR
Required
No
Default
*PROMPT
Length
11
Case
Uppercase

Allowed values: *PROMPT, *LICKEYFILE, *TAPE

*PROMPT
The software license key information is supplied through prompting.
*LICKEYFILE
The software license key information is taken from the file specified on the LICKEYFILE parameter.
*TAPE
The software license key information is taken from a data file with the label QFILEPGMKEY on the tape device specified on the DEV parameter.

PRDID Product identifier

Sets the 7-character identifier of the product for which software license key information is added.

Type
*CHAR
Required
No
Length
7
Case
Uppercase

LICTRM License term

Sets the license term for which software license key information is added. This information is supplied by the software provider.

Type
*CHAR
Required
No
Length
6
Case
Uppercase

FEATURE Feature

Sets the feature of the product specified on the PRDID parameter for which the software license key information is added.

Type
*CHAR
Required
No
Default
5001
Length
4
Case
Uppercase
5001
The software license key information for feature 5001 is added.
feature
Enter the number of the feature for which software license key information is added. Valid values range from 5001 through 9999.

SERIAL System serial number

Sets the serial number of the system for which software license key information is added. Note: The *REMOTE and *ALL values are valid only when *LICKEYFILE or *TAPE is specified for the License key input (LICKEYINP) parameter.

Type
*CHAR
Required
No
Default
*LOCAL
Length
10
Case
Uppercase

Suggested / special values: *LOCAL, *REMOTE, *ALL

*LOCAL
The software license key information for the local system is added.
*REMOTE
The software license key information for all remote systems named in the file specified on the LICKEYFILE parameter or in the tape file with the label QFILEPGMKEY is added.
*ALL
The software license key information for all systems named in the file specified on the LICKEYFILE parameter or in the tape file with the label QFILEPGMKEY is added.
system-serial-number
Enter the serial number of the system for which software license key information is added.

PRCGRP Processor group

Sets the system processor group for which software license key information is added. The software provider supplies this information with the software license key.

Type
*CHAR
Required
No
Default
*ANY
Length
3
Case
Uppercase

Suggested / special values: *ANY

*ANY
The software license key is for any processor group.
processor-group
Enter the processor group of the system for which software license key information is added.

LICKEY License key

Sets the software license key that is supplied by the software provider. The license key has three elements, each of which are six characters long. Valid values for the characters are A-F and 0-9, and can be specified in the format: cccccc cccccc cccccc, where c is a valid character.

Type
*ELEM
Required
No
Case
Uppercase
Elements in order

Characters 1 - 6 Characters 1 - 6

Type
*CHAR
Required
No
Length
6
Case
Uppercase

Characters 7 - 12 Characters 7 - 12

Type
*CHAR
Required
No
Length
6
Case
Uppercase

Characters 13 - 18 Characters 13 - 18

Type
*CHAR
Required
No
Length
6
Case
Uppercase

USGLMT Usage limit

Sets the usage limit for this product or feature. The software provider authorizes the value of the usage limit. For a concurrent usage limit, this is the maximum number of jobs allowed to access the product or feature at any given time.

Type
*DEC
Required
No
Default
1
Length
6
Range
0 to 999999
Case
Uppercase

Suggested / special values: *NOMAX

1
The number of users is limited to one.
*NOMAX
The number of users is not limited.
usage-limit
Enter the maximum number of users for this product or feature. Valid values range from 0 through 999999.

EXPDATE Expiration date

Sets the expiration date of the product license. After this date, no users over the default usage limit can use the product or feature in compliance with this software license key.

Type
*DATE
Required
No
Default
*NONE
Length
7
Case
Uppercase

Suggested / special values: *NONE

*NONE
The license has no expiration date.
expiration-date
Enter the expiration date of the product license.

VNDDTA Vendor data

Sets the vendor data. The software provider supplies this information with the software license key.

Type
*CHAR
Required
No
Default
*NONE
Length
8
Case
Uppercase

Suggested / special values: *NONE

*NONE
Leave vendor data unspecified.
vendor-data
Enter a maximum of eight characters of vendor data.

LICKEYFILE License key file

Enter the library-qualified name of the file from which the software license key information is taken. This input file must be in the format of QSYS/QALZAKEY, and can be created by using the LICKEYFILE parameter on the Display License Key Information (DSPLICKEY) command.

Type
*QUAL
Required
No
Case
Uppercase
*LIBL
Look in the thread's library list.
*CURLIB
Look in the current library, falling back to QGPL.
library-name
Enter the name of the library to be searched.
license-key-file
Enter the name of the file that contains the software license key information.
Qualified parts (object, then library; write LIBRARY/OBJECT)

License key file License key file

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

LICKEYMBR License key member

Enter the name of the member in the file specified on the LICKEYFILE parameter from which the software license key information is taken.

Type
*NAME
Required
No
Default
*FIRST
Length
10
Case
Uppercase

Suggested / special values: *FIRST, *LAST

*FIRST
The oldest member in the file is used.
*LAST
The newest member in the file is used.
license-key-member
Enter the name of the member from which to get information.

DEV Device

Enter the name of the tape device holding the tape from which the software license key information is copied.

Type
*NAME
Required
No
Length
10
Case
Uppercase

VOL Volume identifier

Sets the volume identifier of the tape from which the software license key information is copied.

Type
*CHAR
Required
No
Default
*MOUNTED
Length
6
Case
Uppercase

Suggested / special values: *MOUNTED

*MOUNTED
The volume currently placed in the device is used.
volume-identifier
Enter the identifier of the volume from which the software license key information is copied.

SEQNBR Sequence number

Sets the sequence number of the data file from which the software license key information is copied.

Type
*DEC
Required
No
Default
*SEARCH
Length
4
Range
1 to 9999
Case
Uppercase

Suggested / special values: *SEARCH, *NEXT

*SEARCH
A search is made for a data file with an identifier that matches the label QFILEPGMKEY.
*NEXT
The next sequence is used if that sequence is for a file with the label QFILEPGMKEY.
sequence-number
Enter the sequence number of the data file with the label QFILEPGMKEY to use for copying the software license key information.

ENDOPT End of tape option

Sets what positioning operation is done automatically on the tape volume after the software license key information is copied.

Type
*CHAR
Required
No
Default
*REWIND
Length
7
Case
Uppercase

Allowed values: *REWIND, *LEAVE, *UNLOAD

*REWIND
The tape is automatically rewound, but not unloaded, after the operation has ended.
*LEAVE
The tape does not rewind or unload after the operation ends. It remains at the current position on the tape drive.
*UNLOAD
The tape is automatically rewound and unloaded after the operation ends.

Examples

ADDLICKEY LICKEYINP(*PROMPT) PRDID(1MYPROD) LICTRM(V3) SERIAL(1234567) PRCGRP(P20) LICKEY(123456 7890AB CDEF12) USGLMT(30) EXPDATE(*NONE) VNDDTA(12345678)

Uses prompting to add the software license key information for feature 5001 of the product 1MYPROD to the license repository. The license term is Version 3.

ADDLICKEY LICKEYINP(*LICKEYFILE) SERIAL(*ALL) LICKEYFILE(*LIBL/MYKEYFILE) LICKEYMBR(*LAST)

Adds the software license key information for all of the systems in the newest member of the file MYKEYFILE to the license repository.

ADDLICKEY LICKEYINP(*LICKEYFILE) SERIAL(*LOCAL) LICKEYFILE(*LIBL/MYKEYFILE) LICKEYMBR(*FIRST)

Adds the software license key information found in the oldest member of the file MYKEYFILE to the license repository for this system only.

ADDLICKEY LICKEYINP(*TAPE) DEV(TAP01)

Searches the mounted volume on device TAP01 for the label QFILEPGMKEY. This data file is used and all software license keys for the local system are added to the repository.

IBM command documentation

Generated from os/cl/catalog/ADDLICKEY.json and os/cl/help/ADDLICKEY.json.