The timeout calculation is made by first attempting to apply a job CLASS-specific multiplier. If this multiplier is not present, the process applies the default setting. If neither is present, then a timeout multiplier of 1 (one) is applied to the job. In the example jobstream below, the job has specified a maximum TIME of 20 seconds of CPU time.
If CLASS=C jobs run with a multiplier of 2, then the job will run for between 40 and 50 seconds before being cancelled automatically by the system. This run time refers to actual execution time only, and does not include the time that the job spends in the INPUT or INPUT HOLD queues.
The Overhead value is a machine-dependant figure that is typically between 6 and 10 real seconds. It can vary in either direction depending upon the machine's workload and CPU speed. Any minutes specified on the JOB card are converted to CPU seconds before calculating.
The timeout is is calculated as follows:
Real Seconds = (TIME * Multiplier) + Overhead
For example, in the code below, the timeout is set for around 40 seconds.
//DMFBR14 JOB 'DMFBR14',CLASS=C,MSGCLASS=A,TIME=(,20) //************************************************************** //* Timeout after running for about 40 seconds. (Class C Multipler of 2) //************************************************************** //* Copyright (C) 1985-2008 Micro Focus International Ltd. //* All rights reserved. //************************************************************** //* //* Run one step for about 1 minute //* //STEP1 EXEC PGM=INFINITE,PARM='00012' //SYSOUT DD SYSOUT=* //SYSPRINT DD SYSOUT=* //JBSTATUS DD SYSOUT=*,DCB=(LRECL=80,RECFM=FB,DSORG=PS) //*