Ask the Expert

Restore SAVFS to a 400 library

We use a third-party software that FTPs SAVFS to our IFS. Is there a way to restore the SAVFS to a 400 library straight from the IFS?
You can FTP directly from any FTP server using a script and/or change your third-party software to FTP directly to the save file. You can also create the save file and restore the objects, if you are so inclined. I use a batch PC file to install one of my products using FTP on any PC. The batch file would look like this:

FTP -s:ftpput.txt

The script (ftpput.txt) looks like this:

 
(Replacing servername, userprofile and password):
open yourservername or IP 
userprofile
password
quote rcmd CRTLIB LIB(ISODBC)
quote rcmd DLTF FILE(ISODBC/ISODBCSV)
quote rcmd CRTSAVF FILE(ISODBC/ISODBCSV)
BINARY
PUT c:isodbcisodbcdist.sav /qsys.lib/isodbc.lib/isodbcsv.file/isodbcsv.mbr 
quote rcmd RSTOBJ OBJ(*ALL) SAVLIB(ISODBC) DEV(*SAVF) SAVF(ISODBC/ISODBCSV) RSTLIB(ISODBC)
quote rcmd DLTF FILE(ISODBC/ISODBCSV)
QUIT 

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


This was first published in September 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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

Forgot Password?

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

Your password has been sent to: