You can restore elements located in the backup archive or version backup archive of a PLAM library with the HSMS statement RESTORE-LIBRARY-ELEMENTS. The preceding backups or version backups of the library must contain the metadata about the library elements (SAVE-PLAM-INFO=*YES in the BACKUP-FILES or BACKUP-FILE-VERSIONS statements or in the backup or long-term archive’s save options).
If a PLAM library is to be saved with the metadata about the library elements, the library must be located at S0 level. When PLAM libraries are migrated this metadata is not saved.
The library must be accessible on S0, in other words may not be migrated. The elements can be overwritten and renamed as required.
The backup version of the library containing the specified elements must be known.
The library elements can also be restored to a target library which is not the source library.
The element names of a PLAM library saved with PLAM-INFO=*YES are only contained in the PLAM information in the save file but not in the archive directory. The element names of a PLAM library saved in this way can be listed using the ELEMENTS=*LIST-ALL-TO-REPORT operand in the RESTORE-LIBRARY-ELEMENTS statement.