Return to the FTP Tips
Automate the FTP transfer on the AS/400
To answer your implied future question, yes, you can automate the FTP transfer on the AS/400. Place the FTP commands in a source member, then use:
OVRDBF FILE(INPUT) TOFILE(srclib/srcfile) MBR(ftpcmdmbr) OVRDBF FILE(OUTPUT) TOFILE(srclib/srcfile) MBR(ftplogmbr) and either FTP RMTSYS(url) or FTP RMTSYS(*INTNETADR) INTNETADR(ipaddr) and as always, clean up the overrides DLTOVR FILE(INPUT) DLTOVR FILE(OUTPUT)You can use an RPG program (just to keep slightly on topic) to generate and write the FTP commands to the source member. This gives you a lot of flexibility in naming the files to be sent or received.
[report a broken link by clicking here]