The number executions of a job, used to calculate the AVGRUNTIME variable.
search cancel

The number executions of a job, used to calculate the AVGRUNTIME variable.

book

Article ID: 22097

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How is the AVGRUNTIME symbolic variable calculated?

 

Environment

Release: ALL
Component: ESP Workload Automation

Resolution

ESP Workload Automation AVGRUNTIME(average runtime) variable contains the average execution time, in minutes, of a successful (COMPLETED) execution of a job. 

The AVGRUNTIME(average runtime) value is derived from the most recent elapsed times stored in the JOBSTATS data set.   By default, 10 executions of a job will be used. If there are less than 10 executions, then all them will be used. To change the default value of 10, use the JINDEX(nn) parameter on the JOBSTATS initparm statement. Jobs ended in CCFAIL, or forced complete are considered successful, and are included in the AVGRUNTIME calculation.

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

     JOBSTATS ESP.PROD.JOBSTATS JINDEX(50) NOJOURNAL

    

Additional Information