View previous topic :: View next topic
|
Author |
Message |
venkata.ravi
New User
Joined: 09 May 2005 Posts: 30 Location: Hyderabad
|
|
|
|
Hi All,
I have 10 jobs, which run COBOL-IMS programs. Details of the scenario is below.
Job1 triggers 9 jobs, i.e., Job2 - Job10. All the jobs Job2 - Job10 reads and/or update IMS database. Problem is that, as they trigger at a time and access the same PSB at a time, Deadlocks are happening frequently.
NOTE: All the jobs Job2 - Job10 takes around 10 to 20 sec as of now for the complete execution.
CA7 has no dependency aong the jobs Job2 - Job10.
I would like to set the dependency among the jobs Job2 - Job10, in such a way that, only one job from the set Job2 - Job10 should run at any time, rest should wait in the queue. Is there way to get it done in CA7. Is there any specific term to call this kind of scheduling?
Anyone have implemented this kind of dependency before ? Please share your experience. I would like to hear if there are any drawbacks. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Job1 triggers job2 which triggers job3 which triggers job4 ......... job10
Add dependencies so that job 3 will only run after job 2 etc etc
Add negative dependencies for job 2 against jobs3-10
Add negative dependencies for job 3 against job2 & jobs4-10
Ther you go, that you should be enough to get you reading the manuals
Don't ask me how to do that, I'm using TWS(OPC) at the moment |
|
Back to top |
|
|
venkata.ravi
New User
Joined: 09 May 2005 Posts: 30 Location: Hyderabad
|
|
|
|
Hi expat,
Thanks for your response. I was also thinking of negative dependencies.
Can you please confirm, Will there be any performance issues with introduciton of negative dependencies ? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why should there be ?
Although I would favour a streamed approach which makes any further job additions / deletions easier.
If you add a new job, then that has a dependency on job 10
If you remove a job then you only need to change the dependency of the job that follows the removed job
Using negative deps, when you add a new job to the app, then you may need to change the dependency setup for EVERY existing job |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
venkata.ravi wrote: |
Can you please confirm, Will there be any performance issues with introduciton of negative dependencies ? |
So far what you've described - with that, there should not be any performance issues. OTOH, what "performance issues" you think might be there?
This link might also interest you. |
|
Back to top |
|
|
|