View previous topic :: View next topic
|
Author |
Message |
sprikitik
New User
Joined: 29 Jan 2007 Posts: 61 Location: Makati City, Philippines
|
|
|
|
Hi,
I have 2 jobs job1 and job2. There's a negative dependency between the two jobs. My question is what if job1 abended? will Job2 run?
Thanks! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
What does "negative dependency" mean to you? It is not a term with which i'm familiar. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
my dad used to tell me that our relationship was that of a negative dependency |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Are you trying to say negative dependency mean job2 will execute when job1 ends with anything else apart from acceptable return codes |
|
Back to top |
|
|
sprikitik
New User
Joined: 29 Jan 2007 Posts: 61 Location: Makati City, Philippines
|
|
|
|
Pandora-Box wrote: |
Are you trying to say negative dependency mean job2 will execute when job1 ends with anything else apart from acceptable return codes |
hello, i'm asking if job2 will run even though job1 abended |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Sprik,
You never answered my question or to others
Please explain negative dependency |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
And also mention which scheduling software is being used. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
or Did you mean Job1 and Job2 wont execute together by calling it as negative Dependency |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
what is the relationship between the two jobs? If 'none' (negative) then WHAT are you prattling on about? |
|
Back to top |
|
|
kratos86
Active User
Joined: 17 Mar 2008 Posts: 148 Location: Anna NGR
|
|
|
|
Quote: |
hello, i'm asking if job2 will run even though job1 abended |
Yes... Negative dependency between two jobs - If either of the job is in execution, other cannot run. When a job abends it goes to abend queue from execution queue, hence the other job can run eventhough it abends. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Kratos,
Is 'mutually exclusive' jobs called as negative dependency in some shops? Just wanted to know |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
I think either your site has its own terms, or you are making up the term "negative dependency". From the CA-7 Primer manual, Glossary:
Quote: |
dependent job. A job that must wait for another job to complete successfully so it can run. |
So what you call "negative dependency" is merely "dependent jobs", or "exclusive control" which would normally be enforced by using DISP=OLD on a data set common to both jobs.
Furthermore, most schedulers recognize that a job did not complete successfully and will place the job in a suspense queue to be repaired (JCL changed, or data set restored, or whatever is needed to get the job to complete normally) and any dependent jobs will not be executed until that job has been restarted and run to normal completion. Of course, with CA-7 for example, you can override the default and have CA-7 start a dependent job even if the first job did not complete normally. It all depends upon what you've put in the schedule and which job scheduler you are using, as was pointed out earlier. |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
"Negative dependency" is a CA7 term (or was, I haven't worked with it for a few years) that is a mechanism to prevent two jobs running together. There is no dependency between them in the sense that either one must run first. They simply cannot run together.
As to the TS's question, I cannot remember what happens in that case if one job abends. In TWS there is a similar concept called "special resources" and you have the option of specifying whether the resource is freed or not in the event of an abend. So for example, if the resource was a tape drive there would be no reason why a second job couldn't start to use it after one failed. But if it was a database that may have been corrupted, you would most likely want to recover it first. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
I would try to understand what happens in the Jobs and proceed further |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
In my shop we also use negative dependecy, its like if job1 is running then job2 will wait to complete it and vice versa. This is to avoid any contentions. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
AFAIK, Negative Dependency refers to mutually exclusivity between two or more Jobs. This is checked when a job is in the READY Queue and not submitted if a negative dependency job is running.
If you're a CA7 developer, you can define a negative dependency by prefixing the predecessor Job name with a /. It is recommended that a negative dependency definition be applied to both (or all) jobs in the set to ensure that this applies regardless of which job enters the Queue/s first. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
Sprik,
You never answered my question or to others
Please explain negative dependency |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Quote: |
Sprik,
You never answered my question or to others
Please explain negative dependency |
Duh
Quote: |
"Negative dependency" is a CA7 term (or was, I haven't worked with it for a few years) that is a mechanism to prevent two jobs running together. There is no dependency between them in the sense that either one must run first. They simply cannot run together.
Negative Dependency refers to mutually exclusivity between two or more Jobs. This is checked when a job is in the READY Queue and not submitted if a negative dependency job is running.
If you're a CA7 developer, you can define a negative dependency by prefixing the predecessor Job name with a /. It is recommended that a negative dependency definition be applied to both (or all) jobs in the set to ensure that this applies regardless of which job enters the Queue/s first. |
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
I got that Vasanthz wonder why my post repeated |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
Doesn't matter if the post was repeated - it is still relevant as the topic starter (TS) has not confirmend if they are using CA7 or not so we do NOT know if the definition posted is the required one or not. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
Apologies if that sounded in a different tone.
I was just trying to support the TS. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
vasanthz wrote: |
Apologies if that sounded in a different tone.
I was just trying to support the TS. |
Nah never be sorry
I am sure you wouldnt have done that on purpose |
|
Back to top |
|
|
|