What is the CPF error you receive from the failed RSTLIB cmd? Are you restoring to an existing library that already contains objects?
RSTLIB restores the whole library, which includes the library description, object
descriptions, and contents of the objects in the library.
The RSTOBJ restores the object description and contents of each object specified in the command.
i dont really know how to explain fully..savf is an object…so when you rstobj you are able to restore it nicely…
rstlib is like this..give an example if you restore a lib from a tape, then you use rstlib will restore the whole library which is in the tape.
if you rstobj, which is maybe 1 or 2 objects (example only) then you use rstobj…
if i am not wrong to be able to see the library from the savf, you need to use rstsavf (not sure if correct command) to a temp place and you will be able to see the library
RSTLIB restores a saved library along with all of the objects that were in that library when it was saved.
RSTOBJ restores saved objects.
If you want to restore the objects from a saved library into a different library, you can either restore the objects with RSTOBJ or RSTLIB. Either way, you must use the RSTLIB() parameter to name the different library that the objects will restore into. The RSTLIB() library must already exist.