Fastest way to transfer SAVE FILES from IBM i Server to Another over the network
We save a library to a SAVF, Squish that save file down into a smaller format. Send that little squishy packet over the network (quicker because its smaller). Then we un-squish it on the other end and restore it. #simples.
Squish it up
SAVLIB LIB('Library-to-be-saved') DEV(*SAVF) SAVF(MYLIB/MYSAVF) DTACPR(*YES)
This uses IBM i's built-in compression and will make any save file a few percent smaller than standard.
Now we have the *SAVF in the smallest possible size... let's squish it smaller.
We are going to use JAVA to squish that *SAVF into a *ZIP file. Of course this assumes Java installed on your IBM i Server as a licensed program.
Remember we can access that *SAVF using the IFS naming formats. ie: LIB(MYLIB/MYSAVF) can also be referenced as /QSYS.LIB/MYLIB.LIB/MYSAVF.FILE/MYSAVF.SAVF
Start the JAVA shell on the green screen command line to zip it up:
JAR -cf MYZIP.ZIP MYSAVF.SAVF
The Java "Jar" command basically creates a Java Jar file which is nothing more than a zip file. It's trnsparent and real time compression is quick.
So, now you have a smaller ZPI file called MYZIP.ZIP that you can FTP, email, copy/paste or send by snail mail.
Hope it useful :)