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

Dependency in between two job flows


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 110

PostPosted: Thu Aug 21, 2008 8:17 pm
Reply with quote

Hi,

I have two job flows scheduled in CA7. Both job flows have 100s of jobs.
I want to set a dependency in between two like both should not execute at the same time.
If 1st job flow is kicked off then 2nd job flow should wait until 1st completes.
This can be vice versa..
first 2nd job flow can run then 1st can be kicked off when 2nd job flow completes.


Please advice.
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Thu Aug 21, 2008 8:44 pm
Reply with quote

The two jobs should be exclusive to eachother. Add the jobs in predecessor/successors with exclusive mark '/' to each job. it would be ok.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Aug 22, 2008 12:04 pm
Reply with quote

Are you saying that the second string of jobs can not execute until each and every job in the first string has completed ?

Looks to me that you have a rather badly designed batch suite to me, and time would be better spent in sorting that out rather than just delaying jobs.

But if we had more information ....................
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Fri Aug 22, 2008 2:03 pm
Reply with quote

Hi,
surya_pathaus wrote:
If 1st job flow is kicked off then 2nd job flow should wait until 1st completes.
IF..??

This is not the way schedulers work on - Either the JOB is "predecessor" or "Successor"; once a JOB is sechduled as a "predecessor" it'll always execute before other JOB (or vice-versa) unless you have two different sechduler events which load the same JOBs. But even if this is your case, they need to be sechdule right way & one is always a predecessor or successor..

Well, yes I need to echo Expat -
Quote:
.. if we had more information
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 22, 2008 4:39 pm
Reply with quote

as a general point tws lets the user define special resources, with the use attribute ( shr or exclusive ),
and that' s just what they are for... to allow independent job flow not to have any clash

special resources are arbitrarily chosen strings in the format of a ddname


http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/eqqtps00/6.4.2.1?ACTION=MATCHES&REQUEST=exclusive+resource&TYPE=FUZZY&SHELF=EQQTBK00.bks&DT=20020717115818&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

I guess that ca/7 as a competitor of tws might provide the same facility

apart the current environment where having 100's of jobs on wait should be reviewed
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Negative dependency between jobs in m... COBOL Programming 12
No new posts CA7 Negative dependency JOB=/ CA Products 0
No new posts Is it possible to have a relative tim... IBM Tools 6
No new posts Auto Job dependency Drawing tool for OPC IBM Tools 1
No new posts Automating the job flows by using the... All Other Mainframe Topics 10
Search our Forums:

Back to Top