Page 1 of 1

FTP enterprise stage error

Posted: Mon Jan 29, 2018 8:53 pm
by puliram
FTP Enterprise stage is creating a 0 byte file on the target server if there is no such file in the source server directory.
As there is no such file in source directory...Job obviously aborts and its doing correctly but when I see the target server directory, I see a 0 byte file

Seq File stage ------> ftp Enterprise stage

Reading file in source directory using Seq file stage and writing to a directory in target server.

Any help is really appreciated.
RK

Posted: Mon Jan 29, 2018 9:16 pm
by ray.wurlod
What do you want to happen?

Usually in these cases (when an application like FTP creates an empty file) we clean it up afterwards, for example in an after-job subroutine. Use test -z to determine whether the file is zero bytes long, and rm conditionally to delete it in this case.