FAILJOB |
Scroll |
Specifies whether you want to submit custom JCL for a particular agent if the agent running under the Master terminates unexpectedly (i.e. return code greater than 0).
FAILJOB=Y - indicates that you want to use the Fail JCL option.
FAILJOB=N - indicates that you do not want to use the Fail JCL option.
The Fail JCL option allows you to perform tasks such as trying to restart the agent or notifying someone of an error outside of your normal monitoring processes.
To setup Fail JCL, simply add a JCL member in the FAILJCL library, with the name matching the Agent NAME in the agent section of the Master parm.
For example, suppose that you want to try to restart DB2 Capture Agent task DB2CDCT if the Agent ends unexpectedly. You would create a member named DB2CDCT in the FAILJCL library, that looks something like this.
//START EXEC PGM=SQDCONF
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//*SQDLOG8 DD DUMMY
//SQDLOG DD SYSOUT=*
//SQDPARMS DD *
start --apply /home/cdc/DB2CDCT.cab
//*
If the DB2 Capture Agent fails unexpectedly again, the DB2CDCT fail JCL will be submitted again, until the FAILMAX counter is exceeded. Once FAILMAX has been exceeded, a default member named $FAILMAX , if present, will be executed