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: 2771
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: 8584
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

Active Member


Joined: 15 Aug 2015
Posts: 607
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: 2771
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
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1189

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: 2771
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
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1189

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: 2771
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
Warnings : 2

Senior Member


Joined: 29 Apr 2008
Posts: 1189

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: 1018
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
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 Looking for Mainframe programmers Mainframe Jobs 0
No new posts access Mainframe from .net application All Other Mainframe Topics 0
No new posts How to determine TLS/SSL version in m... TSO/ISPF 2
No new posts Mainframe developer resources/communi... COBOL Programming 2
No new posts How to submit multiple jobs with parm... JCL & VSAM 3
Search our Forums:

Back to Top