saving and restore libraries/objects

1150 pts.
Tags:
BMRS
RSTLIB Errors
RSTOBJ
SAVF
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • ten2008
    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 pointsBadges:
    report
  • jinteik
    sorry its actually rstobj but u specify it as a savf...sorry
    17,330 pointsBadges:
    report
  • Lovemyi
    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 pointsBadges:
    report
  • hafwhit
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following