by 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