Restoring savfiles from DVD.

pts.
Tags:
Tech support
I have a dvd I recieved from a client which contains savefiles with libraries planted inside of them. They backed these files up from an old 620 machine using magstar tapes then copying the files over to dvd. They were using OS level v4r1. I need to restore this information as libraries on my 870 machine utilizing v5r2. Can you please help?

Answer Wiki

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

Since AS400 treats everything as objects, savf are also objects. In this case, when using the RSTOBJ command, u hv to treat device parameter as your tape/dvd device, not as savf (rcvnetf will only work if u are restoring objects from another as400′s savf, but in your case, the savf has already been copied to tape).
Use these parameters for RSTOBJ

OBJECTS = *ALL
SAVED LIBRARY= (find out what is the library that was saved)
DEVICE = dvd device
object types = *ALL

Once u hv restored the objects, you would create a savf, eg,(MAY is the savf name that you create)

Opt Object Type Attribute Text
MAY *FILE SAVF

You can then display the savf contents, by using STRPDM, specify object (option 2) and specify option 5= display or used commands, eg,DSPSAVF

After which you can determine which object you will need to restore, eg, to restore a CL program object to a library. here ENMLIB is the library whereby the savf was saved to and MAYLIB is the library where you wished to restore the object to.

RSTOBJ RSTOBJ OBJ(IGMP06CL) SAVLIB(ENMLIB) DEV(*SAVF) SAVF(MAYLIB/MAY) RSTLIB(MAYLIB)

I would strongly advise that you create a test library to restore your savf first and hold a meeting regarding all the objects which are inside the savf before restore any to production environments. if u had a sand box as400, so much better. DO your stuff in sand box and hv a team of developers test the codes. Get your boss to assign tasks to relevant developers to get the source codes + specs from your client and make sure that these are documented and tested throughly.

If the objects u are restoring within the savf contains only tables, it is still a good idea to create a “clean” library. This is coz the tables names may crashed with existing ones inside production/test environments. Make sure you had very experienced developers or Systems Analyst to look through and document those schemas. Let the SA decide upon which schemas she/he needs u to populate into production.

If those tables are for the purpose of only getting certain data, still it is a good idea to “isolate” the objects in a library by itself to ensure no crashes of object names and no accidental overrides of certain production/test objects

Your experienced developers shld hv no problems running sql/query/400 just to extract the data and build a file to integrate back to their programs, if necessary

Discuss This Question: 1  Reply

 
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
  • JSpence
    In addition to the method mayleong suggests, you could also FTP the SAVF from the DVD into a SAVF in a test library. This is a little more involved, but can be used nonetheless. Since a CD or DVD placed in the drive on the 400 shows up in the QOPT file system in the IFS, this can all be done pretty easily. The steps below show what needs to be done to use this method. 1) Create a test library (TEST in this example), and create a SAVF called SAMPLE in the TEST library. 2) Insert the CD or DVD into the AS/400 or iSeries' drive. 3) Use WRKOPTVOL to find the device name of your drive, and also the volume name. 4) If you need to know the name of the SAVF, you can use option 11 on the WRKOPTVOL screen. 5) Assuming 10.10.10.1 as the 400's IP address, run the following from the command line: FTP '10.10.10.1', and sign in. 6) Change naming conventions by running the NA 1 command. 7) Change to binary mode by running the bin command. 8) The following command will transfer the SAMPLE save file from disk Volume1 to the SAMPLE save file in the TEST library. put /QOPT/Volume1/SAMPLE.SAV /QSYS.LIB/TEST.LIB/SAMPLE.FILE
    0 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