Page 1 of 1

Run job only when source file is there

Posted: Fri Jun 12, 2009 12:04 am
by senthilmp
Hi,
My job uses a file as input, if the file is not present in the directory the job fails. I want the job not to fail if the file is not present in the directory.

i.e The job should kick off only when the file is present else the job shouldnt kick off. I searched the forum but not able to locate correctly.Can anyone help me out. I know its simple, but still am not gettin it.

Thanks in advance

Posted: Fri Jun 12, 2009 12:07 am
by ray.wurlod
Wait For File activity in job sequence.

Given your requirement that the job can not start until and unless the file is present means that some external agency (such as a job sequence) must be used to "kick off" the job.

You can use other techniques, too, such as third party schedulers.

Posted: Fri Jun 12, 2009 12:43 am
by senthilmp
YEs i use sequential file stage, but i dont see a property window to set the Mode specified....Where can i find the property in the Sequential file stage (My job is Server Edition)

Posted: Fri Jun 12, 2009 1:06 am
by ray.wurlod
What property?

You CANNOT do this in a Sequential File stage.

You do it in a Wait For File activity in a job sequence, or in an external script.

Posted: Fri Jun 12, 2009 1:27 am
by senthilmp
Ok thanks, someone posted in the middle stating there is a propery and now its deleted, so only i asked about it.

Thanks for your support :)

Posted: Fri Jun 12, 2009 6:49 am
by chulett
Exactly, you need something else to check and thus only run your job if the file is found. Easiest way is the Sequence and WFF way, but there are others.