FTP is an acronym which stands for File Transfer Protocol.
The AS/400 can function both as an FTP server and an FTP client.
- See also: FTP (CMD)
To pipe the data to the FTP command, you do an OVRDBF for the file INPUT to the source physical file.
After the file is overridden, just invoke the FTP command with the appropriate hostname. The FTP client will take it's input from the overridden file.
Scott Klements has written an open source FTP API. Information can be found at http://www.scottklement.com/ftpapi/
WRKMSGD MSGID(TCP120D) MSGF(QTCP/QTCPMSGF)
- RFC 959 official specification of the File Transfer Protocol (FTP) from www.ietf.org
- Scripting examples
- RPG - "Automate Your File Transfers Using FTP on the IBM i" by Tom Synder, August 17, 2009 from http://www.mcpressonline.com
- CL - "FTP as batch job" from the V5R1 IBM iSeries Information Center