Page 1 of 1
Scheduling based on file existence
Posted: Wed Dec 07, 2011 2:21 am
by zezhenyan
I have the schedule job. but I need the condition befor run the schedule job. I want to use the file as the condition. If the file exists run the schedule, if not do nothing. I think my logic is same as
this post but I cann't understand the answer. Do you have more information.
thanks
Posted: Wed Dec 07, 2011 6:43 am
by chulett
I split your question out into its own post so you have full control of its fate. But to do so, I had to guess at your particulars. First question - is your DataStage server on Windows or UNIX?
After that, which part of the linked answer was unclear? What additional information are you looking for? I'd also be curious what you've tried so far.
Posted: Wed Dec 07, 2011 6:53 am
by chulett
OK, very nice - found your corrected post where you linked to the original topic rather than hijacking it... but it was after I'd already moved this one over. I've deleted that one but it showed that you are running a Windows server so I updated the original post here.
Posted: Wed Dec 07, 2011 7:16 am
by chulett
Another possibility - a Wait For File stage with the wait time set to zero does an existence check. Two triggers from the stage: success trigger runs the rest of the Sequence activities while a 'failure' trigger can do whatever you like when the file is not found (send an email?) including do nothing. Heck, you can probably just stick with the success trigger...