Hai
Iam using FTP stage to read the source file. I have to abort the job if the source file is empty. If the iam reading from the sequential file then i can use wc -file name then trigger my job. But using FTP plugin stage I have no clue how to handle this.
I can do the rowcount after the job and abort the job, but is there any other way to do this
Thanks
Srividhya
Abort the job when source file is empty in FTP
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 143
- Joined: Thu Nov 04, 2004 6:53 am
Re: Abort the job when source file is empty in FTP
First FTP the file. IN the second job execute the Unix command to check the size and if it is zero then abort the job and do the cleanup of the ftped filesrividhya wrote:Hai
Iam using FTP stage to read the source file. I have to abort the job if the source file is empty. If the iam reading from the sequential file then i can use wc -file name then trigger my job. But using FTP plugin stage I have no clue how to handle this.
I can do the rowcount after the job and abort the job, but is there any other way to do this
Thanks
Srividhya
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Never abort.
Retain control.
In a job sequence perform the FTP. Then test the size of the result. If this is non-zero, then proceed with the job that processes it.
Retain control.
In a job sequence perform the FTP. Then test the size of the result. If this is non-zero, then proceed with the job that processes it.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: