Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Restore File

Status
Not open for further replies.

loonybin

Programmer
Dec 12, 2002
38
US
I accidentally cleared a file. Could someone please tell me the complete command to restore the file back from the backup. It's really urgent. Thanks in advance.
 
I was able to restore the file. Since I'm on this topic, I also want to know how to restore source files. Please let me know the command and the parameters that needs to be filled out. Thanks again.
 
You can use the same command. Or at a menu type GO RESTORE and pick from the menu.
 
When you restore a source file, you need to do the following:

Code:
RstObj Obj(QRpgLeSrc) +
       SavLib(MySrcLib) +
       Dev(Tap01) +
       ObjType(*File) +
       SeqNbr(21) +
       EndOpt(*Unload) +
       FileMbr(QRpgLeSrc (MySrcMbr)) +
       MbrOpt(*All)
Just a couple of notes. You need to use the file sequnece number (get that off of the DSPTAP of the backup tape.)
Also, you can restore mutliple members (add them to the FileMbr option.) You MUST specify MbrOpt(*ALL) or the command will get an error message.

RedMage1967
IBM Certifed - RPG IV Progammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top