Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Negative Dependency
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sprikitik

New User


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

PostPosted: Wed May 23, 2012 8:49 pm    Post subject: Negative Dependency
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

Site Director


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

PostPosted: Wed May 23, 2012 8:55 pm    Post subject:
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    Post subject:
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

Moderator


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

PostPosted: Wed May 23, 2012 9:15 pm    Post subject:
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: 58
Location: Makati City, Philippines

PostPosted: Wed May 23, 2012 9:38 pm    Post subject:
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

Moderator


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

PostPosted: Wed May 23, 2012 9:41 pm    Post subject:
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

Site Director


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

PostPosted: Wed May 23, 2012 9:43 pm    Post subject:
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

Moderator


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

PostPosted: Wed May 23, 2012 11:42 pm    Post subject:
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: 1717
Location: UK

PostPosted: Wed May 23, 2012 11:49 pm    Post subject:
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    Post subject:
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: 1445
Location: Azeroth

PostPosted: Thu May 24, 2012 4:32 pm    Post subject:
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: 7914
Location: Bellevue, IA

PostPosted: Thu May 24, 2012 4:48 pm    Post subject:
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: 175
Location: UK

PostPosted: Thu May 24, 2012 5:05 pm    Post subject:
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

Moderator


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

PostPosted: Thu May 24, 2012 5:08 pm    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Thu May 24, 2012 6:47 pm    Post subject:
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

Senior Member


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

PostPosted: Thu May 24, 2012 7:23 pm    Post subject:
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

Moderator


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

PostPosted: Sat May 26, 2012 6:21 pm    Post subject:
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: 1445
Location: Azeroth

PostPosted: Sat May 26, 2012 8:43 pm    Post subject:
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

Moderator


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

PostPosted: Sat May 26, 2012 9:11 pm    Post subject:
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: 1717
Location: UK

PostPosted: Sat May 26, 2012 9:21 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Negative value used in IFTHEN jacobdng DFSORT/ICETOOL 3 Tue Aug 04, 2015 2:12 pm
No new posts Does FUNCTION NUMVAL work for alphanu... Venkata Ramayya COBOL Programming 8 Fri Mar 20, 2015 10:43 pm
No new posts Is it possible to have a relative tim... HammerTime IBM Tools 6 Fri Jan 16, 2015 9:20 pm
No new posts Auto Job dependency Drawing tool for OPC airan002 IBM Tools 1 Sat Aug 16, 2014 1:17 am
No new posts Conversion of negative amount (comp3)... dharmaraok COBOL Programming 9 Mon Feb 24, 2014 5:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us