FTP Error Control on the AS400 through Batch
Posted on 2015-01-08
I have an iSeries V7.R1 and a CL batch job that uses FTP and an FTP command file.
The CL calls a series of programs that create files for me to hook up via FTP and PUT and GET data files.
This CL is run in the job scheduler at night and in the day without human help.
Occasionally the FTP wont connect but the FTP command file keeps on going, only to display in the log as "there must be a connection first" before putting or getting, etc.
My question is, is there a way to monitor an error within the FTP command file, possibly stop the process and pass that problem back to the CL that called the FTP command file so we can attempt a re-do, without all for the processes failing and having to manually correct it.
Its not a problem that happens very often, but when it does, we have to manually recreate data to send back up there on the next run.
Thanks in Advance.