Job Dependency



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Job Dependency

Postby vishaljain » Mon Apr 29, 2013 5:11 pm

Ihave a job X which should run only if jobs A, B, C, D and E are finished. The problem is that jobs A, B, C, D and E will run only if there input files has data in it. Atleast one of the jobs will run but not sure which one.So I am not sure how should I put the dependency in scheduler to run job X. Is there anyway we can do it in scheduler or through JCL?
vishaljain
 
Posts: 4
Joined: Mon Apr 29, 2013 3:59 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job Dependency

 

Re: Job Dependency

Postby NicC » Mon Apr 29, 2013 5:51 pm

Which scheduler is used? What have your scheduling people told you?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Job Dependency

Postby vishaljain » Tue Apr 30, 2013 11:03 am

Thanks for looking into it.We have CA7 scheduler. I could find a work around for it. I am putting a empty file check step in jobs A,B,C,D and E so these jobs will be executed everytime and then putting there dependency on job X. So once A,B,C,D and E are finished I will run job X.
So I don't have to go to scheduling people for this.
vishaljain
 
Posts: 4
Joined: Mon Apr 29, 2013 3:59 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job Dependency

Postby NicC » Tue Apr 30, 2013 12:06 pm

Most places it is the schedulers who update the schedule database and JCL because only authorised people should touch production. If you are doing this yourself then I assume this is for a testing system.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: Job Dependency

Postby Anuj Dhawan » Tue Apr 30, 2013 7:03 pm

vishaljain wrote:Ihave a job X which should run only if jobs A, B, C, D and E are finished. The problem is that jobs A, B, C, D and E will run only if there input files has data in it. Atleast one of the jobs will run but not sure which one.So I am not sure how should I put the dependency in scheduler to run job X. Is there anyway we can do it in scheduler or through JCL?
This is the inference I can make from what you've posted:
IF A AND B AND C AND D AND E executes
    execute X
ELSE
    Don't execute X
END-IF

At IF, there is an "AND" involved for all the Jobs in question which means X can execute only when all these Jobs are executed but, per the bold text from above quoted-text -- you say "atleast one of the jobs will run" -- so what is it -- "Atleast one" or "All of them". It can't be both, you understand, yes?
Anuj
Anuj Dhawan
 
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times


Return to JCL