Job Start Time

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: Job Start Time

Postby dick scherrer » Fri Oct 15, 2010 12:13 am


i think any job shaduler will help like CA7 is i am right dick scherrer?
I've not seen this done by the scheduler. . .

I've not seen the need for "job start time" within an application. There are system reports that show job/step statistics but i've not used job start time for a business process.

As mentioned earlier, current time does what most requirements need.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6308
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 90 times

Re: Re: Job Start Time


Re: Job Start Time

Postby Anuj Dhawan » Sat Oct 16, 2010 8:42 pm

Reading your question, and wondering if you want the total time that it takes for your job to be run -- assuming that it's a batch job with a JCL, and assuming that you can not get this figure from your job messages...

In the first program, at the very beginning, do the ACCEPT <variable> FROM TIME command. Pass this information through all the programs which are run on the job. When you get to the last step in the job, at the last program being run, at the end, do another such ACCEPT command using a different variable. Then have the last program subtract the first time from the second time.

I'm not sure that you can subtract one time directly from another; you may have to convert them all into seconds, do the subtraction, then convert the result back into hours/minutes/seconds...
Anuj Dhawan
Posts: 274
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: Job Start Time

Postby ritikasingh » Thu Oct 21, 2010 6:09 pm

Just as a information, i Always used $avers.That store each and every job which we executed .It has all the information related to time start end, resource used and all.Which helped us a lot for any analysis.
Posts: 39
Joined: Wed Sep 01, 2010 9:12 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol


  • Related topics
    Last post