Jcls start/end timings



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

Jcls start/end timings

Postby arshadhrashid » Tue Dec 15, 2009 3:50 am

Hello there,
I have a situation and I hope some can help.

I have 2 JCL jobs say J1 and J2. they both run fine and I can see their logs in JES2.
I want to make sure that J2 started after J1 ended.
I am opening them manually and noting their times and deciding based upon that info.

Is there any way this could be done automatically?

Thanks.
arshadhrashid
 
Posts: 70
Joined: Tue Jul 28, 2009 5:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: Jcls start/end timings

Postby dick scherrer » Tue Dec 15, 2009 3:56 am

Hello,

You could schedule them so that j2 is a successor of j1. . .

You could modify the jcl of j1 to submit j2 thru the "internal reader".

It is rather a waste of time to manually check for something that could/should be prevented automatically.

If they run out of sequence, then what?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Jcls start/end timings

Postby arshadhrashid » Tue Dec 15, 2009 4:18 am

Thanks for your input.
I think your suggestion of submitting J2 from J1 itself, is helpful.

Now just for the sake of learrning,
if I saved the logs of both of them on 2 different datasets, is there any way I can compare the timings inside?

Thaks again.
arshadhrashid
 
Posts: 70
Joined: Tue Jul 28, 2009 5:03 am
Has thanked: 0 time
Been thanked: 0 time

Re: Jcls start/end timings

Postby dick scherrer » Tue Dec 15, 2009 4:28 am

Hello,

is there any way I can compare the timings inside
Sure. . . Once the data is written, it could be compared by many methods. Various utilities (like superc or the sort product) or by writing code in any language.

If saving the logs is to be done manually, it will waste time and be error prone. . .

Again, better to prevent than detect. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post