Loop activity Problem

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
bhaskara
Participant
Posts: 1
Joined: Fri Apr 21, 2006 7:33 pm

Loop activity Problem

Post by bhaskara »

I am having trouble in looping with in the sequencer.
Job1 checks for the count=2(Here the output goes to a sequential file.), when count=2, Job2 has to run. Here in Job1, the file is created no matter what the output is, so I have used the routine "UtilityAbortToLog", abort the job if the count<>2.
Job1 has to run multiple times till the count=2. So I thought of looping it.
The problem is it is failing to loop with the error "Note: Loop 'StartLoop' was started, but did not complete all its iterations"
Please let me know if you need any more details.
Thanks for all your help.

Bhaskar
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Nested Condition activity (that's your IF test) immediately prior to the job activity. The custom trigger expression would be something like activity.$Counter = 2
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply