View previous topic :: View next topic
|
Author |
Message |
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
Hello,
I have a job to be scheduled and would like to know whether my approach is right
Job A is a daily job runs around 6 AM
Job B is a job gets triggered by job A
Now I have to schedule job C which is triggered on only specific days and should be run between Job A and job C. Below are the steps I am planning to do
1. Schedule the job C as time triggered at 6 AM under different SCHIDs for each day
2. Add Job A with SCHID 000 as requirement to Job C
3. Add a virtual resource between Job C and Job B. This will make job B always wait for Job C to complete.
How this works?
My understating about the approach is, Job C always comes to queue and locks the virtual resource. At the same time waiting for job A to complete. This will ensure job C always runs second.
Thanks in advance.
Benchwarmer |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
|
|
How about talking to the scheduling people at your site? |
|
Back to top |
|
|
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
Thanks for the reply.
I did speak to them and they are leaning towards user controls. Which I do not personally prefer because of the manual errors that happened in the shop previously. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Why not have job C in its own SCHID with an external predecessor of job A and the tme dependency, and change job C in the existing SCHID to have an external predecessor of job C? Why special resources? |
|
Back to top |
|
|
Benchwarmer
New User
Joined: 16 Jul 2016 Posts: 22 Location: desk
|
|
|
|
Quote: |
Why special resources? |
In my previous shop we always used the RM for negative dependency due to its advantage in handling ABEND situations.
Thanks for your suggestion, I am talking to CA7 support to identify a best solution. I will post it when I get one.
Edited to correct the quote. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
|
|
Yes but negative dependency won't ensure you C will run before B. |
|
Back to top |
|
|
|