Parallel Execution of Routine in Sequence job
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 46
- Joined: Tue Mar 20, 2007 3:30 am
- Location: India
Parallel Execution of Routine in Sequence job
Hi,
I have sequence having following flow
RTN1----------------------->Job1
RTN2----------------------->Job2
RTN3----------------------->Job3
RTN4----------------------->Job4
RTN5----------------------->Job5
RTN6----------------------->Job6
RTN1 to RTN6 are the routine activity which looks for the Source file and if the file is not present it remains in loop and keeps on looking for the file. Once the file is found it kick off the load jobs. The problem is that if say the file for RTN3 has not arrived and it remains in loop. The RTN4 to RTN6 does not get initiated. My requirement is that if RTN3 goes into loop due to non-availability of the file all the remaining RTN's and their corresponding jobs should get kicked off. RTN3 is just an example it could happen that on some day RTN1 goes into loop due to non-availability of the file.
Please let me know how i can achieve this functionality.
I have sequence having following flow
RTN1----------------------->Job1
RTN2----------------------->Job2
RTN3----------------------->Job3
RTN4----------------------->Job4
RTN5----------------------->Job5
RTN6----------------------->Job6
RTN1 to RTN6 are the routine activity which looks for the Source file and if the file is not present it remains in loop and keeps on looking for the file. Once the file is found it kick off the load jobs. The problem is that if say the file for RTN3 has not arrived and it remains in loop. The RTN4 to RTN6 does not get initiated. My requirement is that if RTN3 goes into loop due to non-availability of the file all the remaining RTN's and their corresponding jobs should get kicked off. RTN3 is just an example it could happen that on some day RTN1 goes into loop due to non-availability of the file.
Please let me know how i can achieve this functionality.
If you place all these activities in the Job Sequence as is, stick in a Sequencer_Condition linking all the jobs with an "ALL" mode (Followed by a Notification Activity if you need) you should be good.
Narasimha Kade
Finding answers is simple, all you need to do is come up with the correct questions.
Finding answers is simple, all you need to do is come up with the correct questions.
-
- Premium Member
- Posts: 46
- Joined: Tue Mar 20, 2007 3:30 am
- Location: India
-
- Premium Member
- Posts: 46
- Joined: Tue Mar 20, 2007 3:30 am
- Location: India
The problem is that if RTN3 is looking for file "ABC" and it hasn't arrived then the sequence just waits for the RTN3 to complete but i want that all RTN1 to RTN6 should execute in parallel and if there are source files for all of them except RTN3 it should go ahead execute their individual load jobs also so that in the end i am only left with RTN3 in running condition.
-
- Premium Member
- Posts: 644
- Joined: Sat Aug 26, 2006 3:59 pm
- Location: Mclean, VA
-
- Premium Member
- Posts: 46
- Joined: Tue Mar 20, 2007 3:30 am
- Location: India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Premium Member
- Posts: 46
- Joined: Tue Mar 20, 2007 3:30 am
- Location: India
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Routines are executed synchronously in the same process as the sequence itself. That is, the sequence waits for a routine to finish before moving on to any other activity.
Placing the routines in separate sequences obviates that wait in the master sequence.
Placing the routines in separate sequences obviates that wait in the master sequence.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.