wait-for-file
Moderators: chulett, rschirm, roy
wait-for-file
Hi,
my requirment is like this
my source file comes anytime between 11:00 a.m and 4 p.m
I need to process that file as soon as it lands in the unix directory.
I need to check for the file for every half an hour from 11:00 am to 4:pm
in my job sequence i have waitforfile and jobactivity stage which calls actual job
in waitforfile stage I set the timeout length to 1/2 hour.
here my question is , it waits for 1/2 hour, if file is not there yet,the job aborts.
how to be in loop till 4:00 pm.can you please let me know how to acheive this
Thanks
Durga
my requirment is like this
my source file comes anytime between 11:00 a.m and 4 p.m
I need to process that file as soon as it lands in the unix directory.
I need to check for the file for every half an hour from 11:00 am to 4:pm
in my job sequence i have waitforfile and jobactivity stage which calls actual job
in waitforfile stage I set the timeout length to 1/2 hour.
here my question is , it waits for 1/2 hour, if file is not there yet,the job aborts.
how to be in loop till 4:00 pm.can you please let me know how to acheive this
Thanks
Durga
Re: wait-for-file
These two statements are mutually exclusive.Durga wrote:I need to process that file as soon as it lands in the unix directory.
I need to check for the file for every half an hour from 11:00 am to 4:pm
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Curious how this is any different from simply setting the timeout to 5 hours and waiting once?trammohan wrote:Use Start loop and End loop stages in your job sequence and set loop for 10 times i.e from 1 to 10.... and wait stage for 30 minuters...
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
chulett wrote:Curious how this is any different from simply setting the timeout to 5 hours and waiting once?trammohan wrote:Use Start loop and End loop stages in your job sequence and set loop for 10 times i.e from 1 to 10.... and wait stage for 30 minuters...
Input file may appear any time between 0 to 5 hrs.... Let us say if it appears in 30 minutes.. it executes the sequence and exit the process...no need to wait for the remaining time..........
That's the thing - the loop is superfluous and totally unneeded here. The timeout value is the longest it will wait for the file to show up, the moment it does show up it will cease to wait and pass on control to the next stage. There is no 'waiting for the remaining time'.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers