If in a long-term backup not only the library files are saved via the elements but also the metainformation, library elements can also be restored selectively from the long-term backup (as with backup archives) using the RESTORE-LIBRARY-ELEMENTS statement. In the case of a long-term backup the metainformation is saved only if the save option SAVE-PLAM-INFO=*YES is set for the long-term archive.
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.