Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to Remove dependency on two Jobs using same gdg

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
getvichu2000

New User


Joined: 19 Aug 2008
Posts: 4
Location: Phoenix

PostPosted: Mon Nov 24, 2008 11:04 pm    Post subject: how to Remove dependency on two Jobs using same gdg
Reply with quote

I have three Jobs A,B and C

A Job is a dataset triggered Job and C job is successor of A , will run after A completed and it uses the file created in A Job

There is also another JOb B that checks if A job has started or not every half an hour for 7 times
(That is being done , by creating a dummy file in A job's 1st step and B job will check the creation of that file to ensure A job has started)
if after even seven times, the file from A job's 1st step is not created (i.e A job has not started), then B Job remove the relationship between A and C and gives a dummy feed to C and make C to run

The problem is since A and B are creating a new version of same GDG to give to C, A job goes to hold as soon as B job has started

A job's step 5 is creating that GDG version
B job's step 8 is creating the same GDG version

But what's is happening is even though the trigger dataset for A job has arrived , that job is on hold since B job started using the GDG

J E S 2 J O B L O G
A JOB IN HOLD
REQ SERVICE DSNAME
EXC STANDBY GDG.VERSION1

I want A job to run till step 5 even though B job is running. Because then only the file from A job's 1st step will be created and B job will check that and will be ended
Can anyone help me how to resolve this issue
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Mon Nov 24, 2008 11:41 pm    Post subject:
Reply with quote

Quote:
Can anyone help me how to resolve this issue
Sure -- change your logic. Since a job creating a new generation places an enqueue on the GDG base name, A job step 5 and B job step 8 both buildilng GDG generations means one of these jobs is going to wait until the other is done, and the order depends on which one starts first. Since you cannot get around this, you need to rethink your logic.
Back to top
View user's profile Send private message
getvichu2000

New User


Joined: 19 Aug 2008
Posts: 4
Location: Phoenix

PostPosted: Mon Nov 24, 2008 11:45 pm    Post subject: Reply to: how to Remove dependency on two Jobs using same gd
Reply with quote

Thanks for the reply
But is there a way to make A job run all the steps before that step which creates GDG version?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8154
Location: East Dubuque, Illinois, USA

PostPosted: Mon Nov 24, 2008 11:47 pm    Post subject:
Reply with quote

Yep -- put the step that creates the GDG version last. You cannot make JCL execute in any order except the physical order of steps that was submitted. Change the order of the steps to change how they execute.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Nov 25, 2008 1:57 am    Post subject:
Reply with quote

Re-ordering the steps won't let JOB A start while JOB B is creating the same GDG.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Tue Nov 25, 2008 2:58 am    Post subject:
Reply with quote

Hi,

By the way - what's the main purpose of JOB B, is it used only to "initiate" JOB C ?
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
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts self-restarting jobs in OPC jzhardy IBM Tools 1 Mon Aug 21, 2017 10:15 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Determine Region with max bandwidth f... seahawk789 COBOL Programming 3 Mon Feb 27, 2017 8:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us