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:
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.
Dig deeper on RPG iSeries programming
Related Q&A from John Brandt
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.