1,150 pts.
 saving and restore libraries/objects
I was moving a library to a savf and then am restoring in another library.When i used RSTLIB it hasn't worked but when i used RSTOBJ(*all) it worked. Plz can you differentiate between these two commands ?

Software/Hardware used:
IBM i,V6R1
ASKED: May 14, 2010  11:50 AM
UPDATED: May 17, 2010  9:02 PM

Answer Wiki:
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. Tom
Last Wiki Answer Submitted:  May 14, 2010  7:14 pm  by  Whatis23   5,665 pts.
All Answer Wiki Contributors:  Whatis23   5,665 pts. , jinteik   15,485 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I Dont understand what you are telling. But the command RSTSAVF is not existent. I am saving a library here but i could get success inrestoring the library only with RSTOBJ *all command. Plz analyse and answer me…thanks

 1,150 pts.

 

sorry its actually rstobj but u specify it as a savf…sorry

 15,485 pts.

 

Use the RSTLIB and specify *SAVF for the device and then it will provide you a pleace ot put the save file and the library for that save file. Then you can restore the entire library from the save file. Just like doing a SAVLIB to a save file but in reverse.

 2,310 pts.

 

Verify that the library was done as SAVLIB and not SAVOBJ by displaying the save file (Ex: DSPSAVF FILE(QGPL/ANYSAVF) ) and then using F16 to display the header information to see the command used to save the data. You cannot do RSTLIB command if the data was not saved with a SAVLIB command.

 1,145 pts.