• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1371
  • Last Modified:

Restore Library in AS400 ?

Hi, I want to ask to you .
I have backup library in tape (Compress). My name library is teknik, in teknik some 10 table, ect
 Library teknik
     Table tk01f, tk02f, tk03f, tk04f........ and tk10f.

What is syntac restore in as400 ? I want to restore one table tk03f with new table tkbckf  and table tk03f don't replace ?
Please, gime me advice



regard
tri

     
0
triary
Asked:
triary
1 Solution
 
Dave FordSoftware Developer / Database AdministratorCommented:
Since you want to replace some files and not replace others, it's best to restore everything to a temporary location. Then, you can replace or add records in any way you desire.

Assuming the library was saved with SAVLIB, you could do:

CRTLIB LIB(MYSTUFF)

RSTLIB SAVLIB(TEKNIK)
       DEV(TAP01)    
       RSTLIB(MYSTUFF)

Of couse, you'd substitute your tape device name for "TAP01".

Alternately, you could use RSTOBJ:

RSTOBJ OBJ(*ALL)      
       SAVLIB(TEKNIK)
       DEV(TAP01)    
       RSTLIB(MYSTUFF)

Good luck!

Dave
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now