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.
This was first published in September 2003