If there any type of facility that will allow messaging to the IBM console (or other area) that can send an alert if a job reaches a certain threshold like a run time of over 20 minutes?
Release : 12.1
Component : CA 7
Use ARF (Automated Recovery Facility) type of EE, which is Elapsed Time During Execution. Create an ARF rule type EE and specify the elapsed time to monitor. Define an action in the rule for ARF to take when that time is exceeded to send a message to the console. Attach the ARFSET to the job to be monitored on the DB.1 Job Definition Panel.
For example, send a message to the console when a job is still running after 20 minutes:
---------------------- ARF CONDITION EDIT FOR TESTARF ----------------------
FUNCTION: add (ADD,DELETE,EXIT,FORMAT,LIST,REPL,SAVE,SR,SS) DEFCT: 00
TYPE: EE SYS EQ * SID EQ 0 RSTC GE 0 EM EQ * DEFID: 1
FROM: 01011975 0001 TO: 12312074 2359
JC, SC TST: STEP EQ * PROC EQ * PGM EQ *
CC/ABENDS : ??? GE 000 __ ??? GE 000 __ ??? GE 000 __
??? GE 000 __ ??? GE 000 __ ??? GE 000
EC, EE, IS, LB, LE, LS TST:
RO: GE DATE: TIME: AO: ? INT/ADJ: 0020
RESPONSES:
1: AM,CM=C,M=&JOBNAME IS RUNNING TOO LONG
2:
3:
4:
5:
6:
7:
FINAL -- DISP : N CA-11?: N BYPGDG: N USAGE: PROCESS: CC:
START : END :
PROGRAM: AR32 MSG-INDX: 00 -- AR.3.1 -- 22.276 / 08:29:26
MESSAGE: ENTER FUNCTION, TRANSFER OR ENTER A COMMAND ON THE TOP LINE
Then go to DB.1 in the JOB you want the message for and point to this ARFSET.
In the Requirements section
ARFSET: TESTARF
In the Messages section
PROMPTS: Y