Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Save Licensed Program (SAVLICPGM) command saves a copy of all of the objects that make up a licensed program. It saves the licensed program in a form that can be restored by the Restore Licensed Program (RSTLICPGM) command.
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 saved | *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 |
RLS | Release | Character value, *ONLY | Optional |
LNG | Language for licensed program | Character value, *PRIMARY, *ALL | Optional |
OBJTYPE | Object type | *ALL, *PGM, *LNG | Optional |
CHKSIG | Check signature | *SIGNED, *ALL, *NONE | Optional |
VOL | Volume identifier | Single values: *MOUNTED Other values (up to 75 repetitions): Character value |
Optional |
SEQNBR | Sequence number | 1-16777215, *END | Optional |
EXPDATE | File expiration date | Date, *PERM | 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 | ||
TGTRLS | Target release | *CURRENT, *PRV, V5R2M0, V5R3M0, V5R4M0 | Optional |
CLEAR | Clear | *NONE, *ALL, *AFTER, *REPLACE | Optional |
DTACPR | Data compression | *DEV, *NO, *YES | Optional |
LICACPRQD | License acceptance required | *NO, *YES | Optional |
Top |
Specifies the seven-character identifier of the licensed program that is saved.
This is a required parameter.
Top |
Specifies the names of the tape or optical devices used for the save licensed program operation. Each 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 the optional parts of the licensed program given in the Product prompt (LICPGM parameter) that are saved.
The possible values are:
Top |
Specifies which version, release, and modification level of the licensed program is saved.
The possible values are:
Top |
Specifies which national language version (NLV) is used for the save operation.
Note: This parameter is ignored when OBJTYPE(*PGM) is specified.
The possible values are:
Note: Use GO LICPGM with option 20 to display the primary language of the operating system.
Top |
Specifies the type of licensed program objects being saved.
The possible values are:
Top |
Specifies if the digital signatures of objects being saved with the licensed program are to be checked.
The possible values are:
Top |
Specifies the volume identifiers of the tape volumes on which the licensed program data is saved. The volumes must be placed in the same order as the volume identifiers are specified on this parameter. Up to 75 entries can be specified.
The possible values are:
For a media library device, the volume to be used is the next cartridge in the the category mounted by the Set Tape Category (SETTAPCGY) command.
Note: This value cannot be specified when using an optical media library device.
Top |
Specifies, when tape is used, the sequence number to use as the starting point for the save operation.
Top |
Specifies the expiration date of the tape created by the save operation. If a date is specified, the file is protected and cannot be overwritten until the specified expiration date.
Top |
Specifies the operation that is automatically done on the tape or optical volume after the save 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 existing save file to which the product is saved. The save file must be empty, unless *ALL is specified on the Clear prompt (CLEAR parameter).
The possible values are:
Top |
Specifies the release level of the operating system on which you intend to restore and use the product. In the examples given for the *CURRENT and *PRV values, and when specifying the target-release value, the format VxRxMx is used to specify the release, where Vx is the version, Rx is the release, and Mx is the modification level. For example, V4R1M0 is version 4 release 1 modification level 0.
Note: This value is limited by the minimum operating system release specified when the product was created.
The possible values are:
Valid values depend on the current version, release, and modification level, and they change with each new release. Press F4 to see a list of valid target release values.
Top |
Specifies whether active data on the media is automatically cleared or replaced. Active data is any file on the media that has not expired. For saves to tape, clearing active data will make any files on the tape volume beyond the last file written by the save operation no longer accessible. For saves to optical, the files written by the save operation can be automatically replaced while other files on the volume remain active, or all active files can be automatically cleared. Clearing does not erase the data, it just makes the files no longer accessible.
Notes:
If tapes are used and a sequence number is specified for the SEQNBR parameter, the first tape is cleared beginning at that sequence number. All tapes following that first tape are completely cleared. To clear the entire first tape, SEQNBR(1) must be specified.
Note: The *AFTER value is not valid for save files.
Top |
Specifies whether data compression is used.
The possible values are:
Top |
Specifies whether or not the user will be prompted for license acceptance when the saved licensed program is restored. If the licensed program being saved does not have online software agreements, no prompt will be done at restore time. This parameter does not affect the license acceptance status of the licensed program currently installed.
The possible values are:
Top |
Example 1: Tapes Cleared Automatically
SAVLICPGM LICPGM(5722WDS) DEV(TAP01) CLEAR(*ALL)
This command saves the *BASE option of the WebSphere Development Studio licensed program (5722WDS). It is saved on the tape that is in the TAP01 tape drive. Each uncleared tape is cleared automatically when it is encountered, and the save operation continues without operator intervention.
Example 2: Saving on Labeled Tape Volume
SAVLICPGM LICPGM(5722WDS) DEV(TAP01) VOL(ABCDE)
The *BASE option of the WebSphere Development Studio licensed program (5722WDS) is saved on the TAP01 tape drive, starting on the tape volume labeled ABCDE. If the save operation exceeds the storage capacity of one tape, a message requesting that another volume be placed in the TAP01 tape drive is shown to the operator.
Example 3: Saving on Multiple Volumes
SAVLICPGM LICPGM(5722SS1) OPTION(2) DEV(TAP01 TAP02)
The online help option of the i5/OS licensed program (5722SS1) is saved on tape drives TAP01 and TAP02 in alternating order. If the save operation exceeds the storage capacity of two tapes, a message requesting that another volume be put on TAP01 is shown to the operator. The tapes are rewound at the completion of the save operation.
Example 4: Saving to Save Files Cleared Automatically
SAVLICPGM LICPGM(5722WDS) DEV(*SAVF) CLEAR(*ALL) SAVF(MYLIB/MYSAVF)
This command saves the base option of the WebSphere Development Studio licensed program (5722WDS). It is saved to the save file MYSAVF in the library MYLIB. The save file MYSAVF is cleared automatically and the save operation continues without operator intervention.
Example 5: Saving program objects to a save file
SAVLICPGM LICPGM(1MYPROD) OPTION(*BASE) DEV(*SAVF) RLS(*ONLY) OBJTYPE(*PGM) SAVF(MYLIB/MYSAVF)
The 1MYPROD product consists of two libraries and does not have any folders. Only the program objects for 1MYPROD product will be saved in the save file, MYSAVF, in MYLIB library.
Example 6: Saving all objects in one library to a save file
SAVLICPGM LICPGM(1MYPROD) OPTION(*BASE) DEV(*SAVF) RLS(*ONLY) LNG(2924) OBJTYPE(*ALL) SAVF(MYLIB/MYSAVF)
The 1MYPROD product consists of only one library and does not have any folders. The program objects and language objects for the NLV 2924 of 1MYPROD product will be saved in the save file, MYSAVF, in MYLIB library.
Example 7: Saving all objects in two libraries to a save file
SAVLICPGM LICPGM(1MYPROD) OPTION(*BASE) DEV(*SAVF) RLS(*ONLY) LNG(2924) OBJTYPE(*ALL) SAVF(MYLIB/MYSAVF)
The 1MYPROD product consists of two libraries and has one root folder with the *PGM objects, and one subfolder of that root folder with the *LNG objects. The program objects and language objects for the NLV 2924 of 1MYPROD product will be saved in the save file, MYSAVF, in MYLIB library.
Example 8: Saving for a previous release.
SAVLICPGM LICPGM(1MYPROD) DEV(TAP01) TGTRLS(*PRV)
The 1MYPROD product will be saved to TAP01 and may be restored on a system with the previous release of the operating system installed.
Top |
*ESCAPE Messages
Top |