IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Negative Dependency


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 61
Location: Makati City, Philippines

PostPosted: Wed May 23, 2012 8:49 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 23, 2012 8:55 pm
Reply with quote

Hello,

What does "negative dependency" mean to you? It is not a term with which i'm familiar.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed May 23, 2012 8:58 pm
Reply with quote

my dad used to tell me that our relationship was that of a negative dependency
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed May 23, 2012 9:15 pm
Reply with quote

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
View user's profile Send private message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 61
Location: Makati City, Philippines

PostPosted: Wed May 23, 2012 9:38 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed May 23, 2012 9:41 pm
Reply with quote

Sprik,

You never answered my question or to others

Please explain negative dependency
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed May 23, 2012 9:43 pm
Reply with quote

Hello,

And also mention which scheduling software is being used.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed May 23, 2012 11:42 pm
Reply with quote

or Did you mean Job1 and Job2 wont execute together by calling it as negative Dependency
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed May 23, 2012 11:49 pm
Reply with quote

what is the relationship between the two jobs? If 'none' (negative) then WHAT are you prattling on about?
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Thu May 24, 2012 3:53 pm
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu May 24, 2012 4:32 pm
Reply with quote

Kratos,
Is 'mutually exclusive' jobs called as negative dependency in some shops? Just wanted to know
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu May 24, 2012 4:48 pm
Reply with quote

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
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Thu May 24, 2012 5:05 pm
Reply with 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.

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Thu May 24, 2012 5:08 pm
Reply with quote

I would try to understand what happens in the Jobs and proceed further
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu May 24, 2012 6:47 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu May 24, 2012 7:23 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat May 26, 2012 6:21 pm
Reply with quote

Sprik,

You never answered my question or to others

Please explain negative dependency
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Sat May 26, 2012 8:43 pm
Reply with quote

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
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat May 26, 2012 9:11 pm
Reply with quote

I got that Vasanthz wonder why my post repeated icon_surprised.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Sat May 26, 2012 9:21 pm
Reply with quote

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
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Sat May 26, 2012 9:43 pm
Reply with quote

Apologies if that sounded in a different tone.
I was just trying to support the TS.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Sat May 26, 2012 9:56 pm
Reply with quote

vasanthz wrote:
Apologies if that sounded in a different tone.
I was just trying to support the TS.


Nah never be sorry icon_smile.gif

I am sure you wouldnt have done that on purpose icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Negative dependency between jobs in m... COBOL Programming 12
No new posts Negative value - packed field - Natur... Java & MQSeries 0
This topic is locked: you cannot edit posts or make replies. Missing Negative sign in COBOL COBOL Programming 6
No new posts CA7 Negative dependency JOB=/ CA Products 0
No new posts Subtract the ZD fields to provide neg... DFSORT/ICETOOL 4
Search our Forums:

Back to Top