NetBatch Manual

Attributes
NetBatch Manual522460-004
7-76
LIMIT Job Attribute
A scheduler with EMS event-message generation enabled generates event
message
204 (ZBAT-EVT-JOB-OVER-LIMIT) when a job exceeds its execution
time limit.
For message details, see the NetBatch Management Programming Manual.
Example
This example shows the submission and execution of a job with the LIMIT attribute.
The example shows the job’s state change when the specified limit expires and the
log-file events that record the job’s execution history. Job execution continues after
expiration of the limit.
10} SUBMIT JOB LIMIT-TEST, EXECUTOR-PROGRAM DELAY, STARTUP "2
MINS", LIMIT 0:01
Job LIMIT-TEST Jobnumber 14 submitted
11} STATUS JOB 14
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
14 LIMIT-TEST 205,70 4334 EXECUTING DEFAULT
12} STATUS JOB 14
JOB STATUS
JOB JOBNAME USERID LOG STATE CLASSNAME
---- ---------------- ------- ---- ----------- ---------
14 LIMIT-TEST 205,70 4334 OVER LIMIT DEFAULT
13} STATUS-HISTORY 14
2099-E JOB does not exist
16SEP94 11:48:25 BEGIN JOB (FPP.USER)LIMIT-TEST:1 E_E1
L_4334 J_14 P_DELAY
\MELBDEV.$X158:16504109 U_205,70
16SEP94 11:48:26 LIST JOB LIMIT-TEST EXECUTING J_14
16SEP94 11:48:26 START EXECUTOR-PROGRAM U_205,70 J_14
P_DELAY \MELBDEV.$X158:16504109
16SEP94 11:49:26 LIMIT Exceeded J_14
16SEP94 11:50:26 STOP CC_0 EXECUTOR-PROGRAM J_14
\MELBDEV.$X158:16504109
16SEP94 11:50:27 FINISH JOB LIMIT-TEST T_0:0:0:13 J_14
P_DELAY
Output 6 Lines