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

Negative dependency between jobs in mainframe


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Sree Sandhya Kota

New User


Joined: 14 Aug 2021
Posts: 1
Location: India

PostPosted: Sat Aug 14, 2021 8:22 pm
Reply with quote

Hi ..I have a scenario to place a negative dependency between 2 jobs.
it means if one job A executes , other job B should not execute.
This should be done without a scheduler.Can any one pls suggest on this.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Sat Aug 14, 2021 8:53 pm
Reply with quote

Not possible as per me. Why not use scheduler?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Sat Aug 14, 2021 9:03 pm
Reply with quote

Without a scheduler, the only way to do this is to determine which job to execute manually and submit it.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Sat Aug 14, 2021 9:07 pm
Reply with quote

Consider using Jobgroups or, very simple, same jobnames.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Sun Aug 15, 2021 7:00 am
Reply with quote

Joerg.Findeisen wrote:
Consider using Jobgroups or, very simple, same jobnames.
how could same job name can be placed in one prod jcl Lib? Usually the member name is same as job name.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Sun Aug 15, 2021 5:02 pm
Reply with quote

Rohit Umarjikar wrote:
Joerg.Findeisen wrote:
Consider using Jobgroups or, very simple, same jobnames.
how could same job name can be placed in one prod jcl Lib? Usually the member name is same as job name.

1) “Usually” doesn’t mean “must be”.
2) One member can include as many JOB statements as needed.
3) There is no need to use a PDS to store a JCL stream. Any PS dataset is acceptable. Even a deck of punchcards was being successfully used for this purpose in ancient times.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Sun Aug 15, 2021 7:29 pm
Reply with quote

sergeyken wrote:
Rohit Umarjikar wrote:
Joerg.Findeisen wrote:
Consider using Jobgroups or, very simple, same jobnames.
how could same job name can be placed in one prod jcl Lib? Usually the member name is same as job name.

1) “Usually” doesn’t mean “must be”.
2) One member can include as many JOB statements as needed.
3) There is no need to use a PDS to store a JCL stream. Any PS dataset is acceptable. Even a deck of punchcards was being successfully used for this purpose in ancient times.

It’s unrealistic and I have never seen this is true when I worked for big firms so far. So you might have worked where that is possible as lack of missing scheduling or version control tools e.t.c. If one is using scheduling and version control tool it is not possible to have two jobs with same member name. One member having multiple jobs cards is possible but that’s not the ask here.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Sun Aug 15, 2021 7:45 pm
Reply with quote

Rohit Umarjikar wrote:
sergeyken wrote:
Rohit Umarjikar wrote:
Joerg.Findeisen wrote:
Consider using Jobgroups or, very simple, same jobnames.
how could same job name can be placed in one prod jcl Lib? Usually the member name is same as job name.

1) “Usually” doesn’t mean “must be”.
2) One member can include as many JOB statements as needed.
3) There is no need to use a PDS to store a JCL stream. Any PS dataset is acceptable. Even a deck of punchcards was being successfully used for this purpose in ancient times.

It’s unrealistic and I have never seen this is true when I worked for big firms so far. So you might have worked where that is possible as lack of missing scheduling or version control tools e.t.c. If one is using scheduling and version control tool it is not possible to have two jobs with same member name. One member having multiple jobs cards is possible but that’s not the ask here.

It is absolutely realistic.
I participated in a project for one of the largest US organizations, where hundreds to thousands of daily jobs, later scheduled and controlled by CONTROL-M facility, are initially generated and customized by means of FTS as several huge job streams, with hundreds of related jobs in each of them.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Sun Aug 15, 2021 8:13 pm
Reply with quote

Exactly , in today world almost everyone uses scheduling and version control tools , what’s done in past or ancient is not something I want to argue on.

So let it get clarity why not scheduling an option here first else as said by Robert submit them manually one after another.
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Sun Aug 15, 2021 8:31 pm
Reply with quote

Rohit Umarjikar wrote:
what’s done in past or ancient is not something I want to argue on.

About 80-90% of the total permanently running software nowadays is the “ancient one”, created between 1960-1980; it doesn’t require daily patches, and fixes, unlike the “modern” development which will need every-hour, and every-minute fixes very soon.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1050
Location: Richmond, Virginia

PostPosted: Mon Aug 16, 2021 8:04 am
Reply with quote

Quote:
Even a deck of punchcards was being successfully used for this purpose in ancient times.


One danger here: In one of the original Mission Impossible TV episodes (1966-73), the Peter Graves character is to disrupt a computer center operation.

He gets on a tour of the computer room, and as the tour group passes a card reader with about a foot or two of cards on the input stack, he slips a punchcard into the pile.

As the group continues around the room, the camera periodically shows the card stack getting lower and lower, and when the fatal card is read in, all of a sudden the tape drives go berserk, and the card punch starts spewing cards out all over the floor.

Never mind there are brackets on the cardpunch that prevent this and which cannot be moved by a program, and never mind about a dozen other things.

Pretty funny.
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Sun Oct 17, 2021 7:57 pm
Reply with quote

We do this all of the time and there are various ways to do this. I'd need to know more about your use case but things to know/investigate that might help you are that jobs can be submitted from job, you can make use of datasets to indicate if jobs have run, and you can build your own schedule making uses of files or tables to keep track of what has already run and what to run next.

I've worked in various shops where for whatever reason we would not allowed to use the 'proper' schedule to schedule test jobs. Or, if we were allowed, the process to update the test schedule using the proper scheduler was too onerous.

So I've used the above techniques in various combinations to run test schedules many times.
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Sun Oct 17, 2021 8:00 pm
Reply with quote

We do this all of the time and there are various ways to do this. I'd need to know more about your use case but things to know/investigate that might help you are that jobs can be submitted from job, you can make use of datasets to indicate if jobs have run, and you can build your own schedule making uses of files or tables to keep track of what has already run and what to run next.

I've worked in various shops where for whatever reason we would not allowed to use the 'proper' schedule to schedule test jobs. Or, if we were allowed, the process to update the test schedule using the proper scheduler was too onerous.

So I've used the above techniques in various combinations to run test schedules many times.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts purge jobs with return code 0 and ret... JCL & VSAM 4
No new posts Email attachment from mainframe is empty PC Guides & IT News 9
No new posts Mainframe Dataset Binary or ASCII Mainframe Interview Questions 4
No new posts Need help In Mainframe Automation AF/... CLIST & REXX 14
No new posts SPOOL to Mainframe dataset in batch mode JCL & VSAM 7
Search our Forums:

Back to Top