Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Restore Licensed Program (RSTLICPGM) command loads or restores a licensed program for initial installation, for new-release installation, or for recovery.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
LICPGM | Product | Character value | Required, Positional 1 |
DEV | Device | Single values: *SAVF Other values (up to 4 repetitions): Name |
Required, Positional 2 |
OPTION | Optional part to be restored | *BASE, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 01, 02, 03, 04, 05, 06, 07, 08, 09 | Optional |
RSTOBJ | Type of object to be restored | *ALL, *PGM, *LNG | Optional |
LNG | Language for licensed program | Character value, *PRIMARY, *SAVVOL | Optional |
OUTPUT | Output | *NONE, *PRINT | Optional |
RLS | Release | Character value, *FIRST | Optional |
REPLACERLS | Replace release | Character value, *ONLY, *NO | Optional |
VOL | Volume identifier | Single values: *MOUNTED Other values (up to 75 repetitions): Character value |
Optional |
SEQNBR | Sequence number | 1-16777215, *SEARCH | Optional |
ENDOPT | End of media option | *REWIND, *LEAVE, *UNLOAD | Optional |
SAVF | Save file | Qualified object name | Optional |
Qualifier 1: Save file | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
LIB | Library | Element list | Optional |
Element 1: Library 1 | Name, *SAME | ||
Element 2: Library 2 | Name, *SAME | ||
Element 3: Library 3 | Name, *SAME | ||
Element 4: Library 4 | Name, *SAME | ||
Element 5: Library 5 | Name, *SAME | ||
Element 6: Library 6 | Name, *SAME | ||
Element 7: Library 7 | Name, *SAME | ||
Element 8: Library 8 | Name, *SAME | ||
Element 9: Library 9 | Name, *SAME | ||
Element 10: Library 10 | Name, *SAME | ||
Element 11: Library 11 | Name, *SAME | ||
LNGLIB | Language library | Name, *SAME | Optional |
FLR | Folder | Name, *SAME | Optional |
CODHOMEDIR | Code home directory | Single values: *PROMPT Other values (up to 300 repetitions): Path name, *SAME |
Optional |
LNGHOMEDIR | Language home directory | Single values: *PROMPT Other values (up to 300 repetitions): Path name, *SAME |
Optional |
FRCOBJCVN | Force object conversion | Single values: *SYSVAL, *NO Other values: Element list |
Optional |
Element 1: Convert during restore | *YES | ||
Element 2: Objects to convert | *RQD, *ALL |
Top |
Specifies the seven-character identifier of the licensed program that is restored.
This is a required parameter.
Top |
Specifies the name of the device used for the restore of the licensed program. The device name must already be known on the system by a device description. Use the Work with Device Descriptions (WRKDEVD) command to display the names of the devices available on this system.
This is a required parameter.
The possible values are:
Top |
Specifies which one of the optional parts of the licensed program given in the Product prompt (LICPGM parameter) is to be restored.
The possible values are:
Top |
Specifies the type of licensed program objects to be restored.
The possible values are:
If a tape device is specified on the DEV parameter, then the RSTOBJ(*ALL) value is used when the saving of the licensed program has been done with the SAVLICPGM command such that the language objects immediately follow the program objects on the tape media. If the language objects (*LNG) and programming objects (*PGM) are not in consecutive order on the distribution tape, *ALL cannot be used in most cases. Instead, the program and language objects must be restored separately. The DSPTAP command can be used to determine the order of the objects on the tape. An example of how to restore language and program objects separately is in the "Examples" section at the end of this command.
If *SAVF is specified on the DEV parameter, then the RSTOBJ(*ALL) value can be used when the saving of the licensed program has been done with the SAVLICPGM command using OBJTYPE(*ALL).
Top |
Specifies the national language version (NLV) to be used for restoring the licensed program. If the language feature of the licensed program on the save media matches the system language feature, the language objects are restored to the licensed program's libraries. If the language features do not match, the language objects are restored into the multilingual library for that language feature.
The possible values are:
Note: Use GO LICPGM with option 20 to display the primary language of the operating system.
Top |
Specifies whether a listing that shows information about the status of the objects is created. The listing shows the parameter values that were specified and shows all objects, restored and not restored. Information about each object's security is listed for the restored objects.
The possible values are:
Top |
Specifies the version, release, and modification level of the licensed program being restored.
The possible values are:
Top |
Specifies the version, release, and modification level of the licensed program being replaced.
The possible values are:
Top |
Specifies the volume identifiers of the media or the cartridge identifiers of tapes in a tape media library device, from which the objects are being restored. The volumes must be in the same order as they were when the data was saved. The volume that contains the beginning of the file to be restored should be placed in the device.
The possible values are:
Note: This value cannot be specified when using an optical media library device.
Top |
Specifies which sequence number to use for the restore process. This option is only valid for tape devices.
The possible values are:
Top |
Specifies the operation that is automatically done on the tape or optical volume after the restore operation ends. If more than one volume is used, this parameter applies only to the last volume used; all other volumes are unloaded when the end of the volume is reached.
Note: This parameter is valid only if a tape or optical device name is specified for the DEV parameter. For optical devices, *UNLOAD is the only special value supported, *REWIND and *LEAVE will be ignored.
Top |
Specifies the qualified name of the save file containing the product.
The name of the save file can be qualified by one of the following library values:
The possible values are:
Top |
Specifies the libraries into which the licensed program is being restored. This function is not supported by all licensed programs.
The possible values are:
Top |
Specifies the secondary language library into which the secondary language objects are restored. This function is not supported by all licensed programs.
The possible values are:
Top |
Specifies the name of the root folder into which the licensed program is being restored. This function is not supported by all licensed program.
The possible values are:
Top |
Specifies the directories into which the code part of the product is being restored. This function is not supported by all products.
Note: This parameter is mutually exclusive with the FLR parameter.
The possible values are:
Top |
Specifies the directories into which the language part of the product is being restored. This function is not supported by all products.
Note: This parameter is mutually exclusive with the FLR parameter.
The possible values are:
Top |
Specifies whether to convert user objects to the format required for use in the current version of the operating system when the objects are restored.
Notes:
Single values
Note: If FRCOBJCVN(*NO) is specified, then the QFRCCVNRST system value must have a value of either "0" or "1".
Element 1: Convert during restore
Notes:
Element 2: Objects to convert
Top |
Example 1: Restoring Program Using Defaults
RSTLICPGM LICPGM(5722WDS) DEV(TAP01)
This command restores the WebSphere Development Studio (5722WDS) licensed program to the system. The tape containing the licensed program objects must be put on the TAP01 tape drive. Because no other parameters are specified, the defaults are used for the command.
Example 2: Restoring a Third Version of a Product
RSTLICPGM LICPGM(1MYPROD) OPTION(*BASE) DEV(TAP01) RLS(V5R2M0) REPLACERLS(*NO) LIB(A B C)
This command restores the base part of the V5R2M0 1MYPROD product to the system if the base of the V5R2M0 1MYPROD product is not currently installed on the system.
Example 3: Restoring One Version of a Product Over Another Version
RSTLICPGM LICPGM(2MYPROD) OPTION(*BASE) DEV(TAP01) RLS(*FIRST) REPLACERLS(*ONLY)
This command restores the first version release modification level of the base part of the 2MYPROD product that is found on the tape in the TAP01 drive. It does not matter if the version release modification level of the base of the product on the tape matches the version release modification level of the base of the product on the system.
Example 4: Restoring Product From Save File
RSTLICPGM LICPGM(5722WDS) DEV(*SAVF) SAVF(MYLIB/MYSAVF)
This command restores the WebSphere Development Studio (5722WDS) licensed program to the system from the save file MYSAVF in MYLIB. Because no other parameters are specified, the defaults are used for the command.
Example 5: Restoring a Third Version of a Product From a Save File
RSTLICPGM LICPGM(1MYPROD) OPTION(*BASE) DEV(*SAVF) RLS(V5R2M0) REPLACERLS(*NO) LIB(A B C) SAVF(MYLIB/MYSAVF)
This command restores the base part of the V5R2M0 1MYPROD product to the system from save file MYSAVF in MYLIB if the base of the V5R2M0 1MYPROD product is not currently installed on the system.
Top |
*ESCAPE Messages
Top |