How many runs of a CA WA ESP job are used to calculate the AVGRUNTIME variable?

Document ID : KB000022097
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:

How is the AVGRUNTIME symbolic variable calculated?

Answer:

The CA WA ESP AVGRUNTIME (average runtime) variable contains the average execution time in minutes of successful (COMPLETED) instances of a job. 

The average runtime value is derived from the most recent elapsed times stored in the JOBSTATS data set.   By default, 10 runs of a job will be used.  (If there are less than 10 runs, then all the runs will be used.)  To change the default value of 10, use the JINDEX(nn) parameter on the JOBSTATS init statement.

     Example: JOBSTATS ESP.PROD.JOBSTATS JINDEX(50) NOJOURNAL

     The above example keeps 50 job statistic record entries (for each job) in the JOBSTATS data set.

Additional Information:

Jobs ended in CCFAIL, or forced complete are considered successful, and are included in the AVGRUNTIME calculation.