FTP can accept input from a file instead of the keyboard and send output to a file instead of the screen. All you have to do is override "INPUT" to a script, and override "OUTPUT" to a log file, before FTP is called. ------- FTP CL Program ------------------------------------- PGM /* CLEAR THE FTP LOG FILE. */ CLRPFM FILE(qgpl/QSRC) MBR(LOG) MONMSG CPF0000 /* OVERRIDE FTP SCRIPT FILE and FTP LOG FILE. */ OVRDBF FILE(INPUT) TOFILE(qgpl/QSRC) MBR(SCRIPT) OVRDBF FILE(OUTPUT) TOFILE(qgpl/QSRC) MBR(LOG) /* START FTP SESSION */ FTP 'xxx.xxx.xxx.xxx' ENDPGM ------SCRIPT------------------------------------------------------ user xxxx password lcd qgpl cd '/qibm/fiveten/' del '/qibm/fiveten/movie.txt' quote rcmd call qgpl/moviebuild get movie.txt movefile (replace quit ----------------------------------------------------------------- FTP commands on as400 Ftp to an AS400, the type HELP to see these commands FTP Client Subcommands - Help ! ? ACCT APpend AScii Binary CD CDUp CLose DEBug DELete DIr EBcdic Get Help LCd LOCSIte LOCSTat LPwd LS LType MDelete MGet MKdir MOde MPut NAmefmt NOop NUllflds Open PAss PUt PWd QUIt QUOte RE Initialize REName RESet RMDir SEND PAsv SEND POrt SEND Site SIte STAtus STRuct SUnique SYSCmd SYSTem TYpe User Verbose -----------------------------------------------------------------