Q

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 last 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.

Start the conversation

Send me notifications when other members comment.

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

Please create a username to comment.

-ADS BY GOOGLE

SearchEnterpriseLinux

SearchDataCenter

Close