Reset the loop when processing data
Posted: Mon Mar 07, 2011 8:41 am
Hi,
I have a job sequence design that runs in loop for x times with two branches, branch1, if no files to process then it does sleep and keep on running in loop. branch2, if there are files to process then reset the loop limit to start the counter from 1 to run for x times.
Basically I want to run the job x times only when there are no files.
I need help on how to reset the loop counter to start from 1 when the files exist to process?
The requirement is loop the job x times only when there is no files. otherwise (if files are there, keep processing files) x times condition does not apply here. we get the files at regular interval and we have an end of file marker to exit loop if nothing more to process.
Any help is greatly appreciated on how to reset the loop limit counter depending on file exists to process.
Thanks
I have a job sequence design that runs in loop for x times with two branches, branch1, if no files to process then it does sleep and keep on running in loop. branch2, if there are files to process then reset the loop limit to start the counter from 1 to run for x times.
Basically I want to run the job x times only when there are no files.
I need help on how to reset the loop counter to start from 1 when the files exist to process?
The requirement is loop the job x times only when there is no files. otherwise (if files are there, keep processing files) x times condition does not apply here. we get the files at regular interval and we have an end of file marker to exit loop if nothing more to process.
Any help is greatly appreciated on how to reset the loop limit counter depending on file exists to process.
Thanks