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
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
sorry its actually rstobj but u specify it as a savf…sorry
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.
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.