FTP enterprise stage error

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
puliram
Participant
Posts: 20
Joined: Mon Apr 28, 2008 6:10 pm

FTP enterprise stage error

Post 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
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply