Hi everyone,
I hope you are all doing well today. I need some assistance with calculations that needs to be done for batch jobs. I do an extract from the logs using the IEF403I (start) and IEF404I (end) messages. I write the into a file and populate another file later in the process with some more stats. The file containing the start time looks like this:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
OCDO0002 - STARTED - TIME=00.25.31
******************************** Bottom of Data ********************************
The file containing the end time looks like this:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
********************************* Top of Data **********************************
OCDO0002 - ENDED - TIME=01.29.15
******************************** Bottom of Data ********************************
It is currently 2 different files and I concatinate them in a later process for the report. However I will propably have to get these values into one file to the the calculation of the runtime of the job, which is not a problem.
My questions are:
1. What utility can I use to do these calculations?
2. If the job abends/fail, I will pick up more that one start and finish message from the log. How do I extract the first record from the started messages in the populated file like in the above examples, and the last ended message in the populated file like the other above example?
Thank you for your support, it is much appreciated.
Regards,
Martin