RPG/i5 Tools - FREE RPG/i5 (AS400) software downloads.  This site has examples (source) of many utilities that use APIs and procedures.  Most of them are written with Free Format RPG IV/ILE and take advantage of RPG/i5 (AS400) service programs.

Example of iSeries (AS400) FTP Command Structure.

Try Sticky Password Manager
This is an example of a common FTP script.

This script would list any/all of the commands that would be used during the FTP session. These commands are pretty much standard FTP commands. The AS400 uses the same commands/structure as other systems.

				userid password                        
				put QGPL/SRCTOOLS.FTPFILEC /public_html
				QUIT