Q

Restore SAVFS to a 400 library

This Content Component encountered an error

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

Dig deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close