I agree, if the server responds with “file format not valid”, you reached an iSeries.
namefmt 1 command in FTP changes from file/library to IFS file structure
Try this in a CL:
DCL &SYSNAM *CHAR 10 VALUE(‘10,1,1,254’)
DCL &CMDFILE *CHAR 10 VALUE(‘FTPCMD ‘)
DCL &LOGFILE *CHAR 10 VALUE(‘FTPLOG ‘)
OVRDBF FILE(INPUT) TOFILE(*LIBL/&CMDFILE) +
OVRDBF FILE(OUTPUT) TOFILE(*LIBL/&LOGFILE) +
The “FTP” command will read instructions from “INPUT” and write a log of responses to “OUTPUT”
I created files FTPCMD and FTPLOG as normal PF, Record Length 80, not dds defined.
cd – change working directory on target server
lcd – change working directory on source server
Use DFU or a file editor of your choice to add the commands to FTPCMD. Here is a sample command string for iSeries to iSeries FTP to the IFS