Solved

Restore Library in AS400 ?

Posted on 2004-10-21
1,216 Views
Last Modified: 2008-02-01
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
Question by:triary
    1 Comment
     
    LVL 18

    Accepted Solution

    by:
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    November 2009 Recently, a question came up in the DB2 forum regarding the date format in DB2 UDB for AS/400.  Apparently in UDB LUW (Linux/Unix/Windows), the date format is a system-wide setting, and is not controlled at the session level.  I'm n…
    Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
    This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now