Wait for file to trigger a sequence

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
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Wait for file to trigger a sequence

Post by vinothkumar »

Hi,
I need to trigger a sequence automatically if any file arrives in a particluar directory.Whil running the file will be deleted by sequence. Once the sequence gets completed again it has to wait for files in th same directory. How can I achieve this ?
Vinodanand
Premium Member
Premium Member
Posts: 112
Joined: Mon Jul 11, 2005 7:54 am

Re: Wait for file to trigger a sequence

Post by Vinodanand »

vinothkumar wrote:Hi,
I need to trigger a sequence automatically if any file arrives in a particluar directory.Whil running the file will be deleted by sequence. Once the sequence gets completed again it has to wait for files in th same directory. How can I achieve this ?
Hi,
You can have a master sequence and use the wait for file activity stage to trigger other sequences.
vinothkumar
Participant
Posts: 342
Joined: Tue Nov 04, 2008 10:38 am
Location: Chennai, India

Re: Wait for file to trigger a sequence

Post by vinothkumar »

I dont know the exact file name to look for.. It can be any file. How to do this in Wait for filr stage
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

As you've already found in your other thread with this question you cannot use wildcards in the WFF stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply