55 pts.
 FTP subcommads
Hi All, Can anyone provide list of file/object extension .XXX, downloading data to PC and PC to iseries box we need this extensions. 2) I faced an issue have taken one of savf data to PC. But when I tried to transfer to iseries the file is saved in PF type. Can anyone help me to recover this error? //Dina

Software/Hardware used:
ASKED: November 2, 2012  7:23 PM

Answer Wiki:
I think you also need to set the mode to BIN when doing the FTP command.
Todd
Last Wiki Answer Submitted:  November 5, 2012  8:14 pm  by  ToddN2000   3,910 pts.
All Answer Wiki Contributors:  ToddN2000   3,910 pts. , Michael Tidmarsh   11,400 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

For most practical circumstances, there are two types of extensions that make a difference to iSeries: .SAVF and everything else. The .SAVF extension (upper-/lower-case doesn’t matter) can be automatically recognized as a savefile. Everything other than .SAVF will be handled as a plain old physical file.
 
This only matters for uploads/downloads through the /QSYS.LIB file system. If you’re working through a basic /root file system directory, the extension is irrelevant. All transfers in to or out of /root are straight streamfile transfers.
 
If any other extension is used for a savefile, you must use CRTSAVF to pre-create the savefile to receive a transfer and retain the savefile format. It can take a couple practice runs to get the hang of it, but it’s reasonably simple once you see it work. Basic tests are easy to set up.
 
Tom

 108,055 pts.

 

In addition to doing the FTP in BIN (binary mode) another possible problem can happen if you are trying to transfer this SAVF to another i-Series. It may be that the target system is on a different release. In that case you need to create a new SAVF with the target release set properly.

 3,910 pts.

 

I think you also need to set the mode to BIN…
 
Definitely. There should be no character conversions allowed for savefile data.
 
Tom

 108,055 pts.

 

However have tried BIN, as my friends said have created new savf on target iseries machine followed below cmd from my PC
put Target.LIB/XXX.savf    Target.LIB/XXXX.savf
it worked fine, thanks to all
 

 55 pts.