Because *SAVF files must be sent as images, you must issue FTP BINARY subcommand before transferring these types of files.
When transferring a *SAVF file using name format 0, the save file on the receiving system must be pre-created. It is recommended that files are pre-created in other situations as well for reasons of performance and integrity.
The transfer of a save file--because it is a file format peculiar to iSeries--can only be made usable if the sending and receiving servers are both iSeries™ servers. However, a save file can be sent to a non-iSeries server and stored there for backup purposes. The save file can be transferred later to the iSeries with FTP.
The following example shows how to transfer a *SAVF file from VM to an iSeries for both NAMEFMT 0 and 1. The FTP session has already been initiated, the BINARY subcommand has been issued, and NAMEFMT 0 has been specified.
First, transfer the file P162484 SAVF310L from the VM A disk to the iSeries. VM FTP requires that you insert a period between its file name and file type. Give it the file name P162484 in library P162484 on the iSeries, and specify REPLACE as it has been pre-created even if it has not been used before. You will recall that pre-creation is mandatory with NAMEFMT 0.
COPYFILE P162484 SAVF310L A = = = (RECFM F REPLACE
___________________________________________________________________________________ | | | > GET P162484.SAVF310L P162484/P162484 (REPLACE | | 200 Port request OK. | | 150 Sending file 'P162484.SAVF310L' | | 250 Transfer completed successfully. | | 384912 bytes transferred in 3.625 seconds. Transfer rate106.183 KB/sec | | | | > namefmt 1 | | 202 SITE not necessary; you may proceed | | Client NAMEFMT is 1. | | > GET P162484.SAVF310L/QSYS.LIB/P162484.LIB/P162484.savf(REPLACE | | 200 Port request OK. | | 150 Sending file 'P162484.SAVF310L' | | 250 Transfer completed successfully. | | 384912 bytes transferred in 3.569 seconds. Transfer rate107.839 KB/sec | | Enter an FTP subcommand. | | ===> | | | |__________________________________________________________________________________|