Page 1 of 1

Infinity loop into Sequence

Posted: Thu Jun 20, 2013 10:06 am
by soportesis
Hello,

I need to make an infinity loop into a sequence job. Somebody know if that is posible? I have tried with startloop and endloop stages but in its properties I didn't find how to define it.

In my design I don't have a list or a fix number to limit the iterations into the loop, neither I have a file that I can use to wait for it.

Tnks.

Posted: Thu Jun 20, 2013 10:20 am
by chulett
You can't and trust me you don't want one. Make sure the job stops on some kind of a regular basis, even if it's only for a minute or two so files can flush and logs can purge, etc etc.

My last one like that ran 24x7 but it ran 23:55 minutes a day, shutting down at that time and then scheduled to start at midnight .

Posted: Thu Jun 20, 2013 11:34 am
by prasson_ibm
Hi,
You can not implement imfinite loop in sequence,but it can have many iterations like 1 to 9999999. But as chullet said,sequences need to be stopped and retriggered again in limited period of time.

Posted: Thu Jun 20, 2013 4:00 pm
by ray.wurlod
You should also build in a mechanism for notifying it to stop (or, at least, to stop at the next iteration). Typically a file coming into existence would serve as a "stop" flag. This can be checked easily with a Wait For File activity or an Execute Command activity.

Posted: Thu Jun 20, 2013 5:36 pm
by chulett
Right, pretty much always build something of that nature in. Not for the daily stop and take a breather but for an emergency stop so it can be as graceful as possible.