Example 2

//TI94237A JOB .....
//*%OPC RECOVER JOBCODE=S*37,ADDPROC=SPACECHG
//*%OPC RECOVER JOBCODE=(*,16-4095),RESTART=N,ADDAPPL=REORG
//*%OPC RECOVER JOBCODE=12
//STEP01  EXEC PGM=ATTACH8A,REGION=256K
//SYSOUT  DD   SYSOUT=A
//TSTIN   DD   DSN=TI94237.IN.DATA,DISP=SHR
//TESTWK1 DD   UNIT=3380,SPACE=(CYL,(1,1))
//TESTWK2 DD   UNIT=3380,SPACE=(CYL,(1,1))
//TESTWK3 DD   UNIT=3380,SPACE=(CYL,(1,1))
//TSTOUT  DD   DSN=TI94237.OUT.DATA,DISP=SHR
In example 2:
  • The first RECOVER statement specifies that, for space problems in any of the steps, the member SPACECHG should be added and, the failed job should be restarted (rerun the failed HCL Workload Automation for Z operation).
  • The second RECOVER statement specifies that, for any other error code (not in the EXCLUDECC list) and return code 16 or higher, the failed job (HCL Workload Automation for Z operation) should not be restarted, but the application called REORG should be started.
  • The third RECOVER statement specifies that, for return code 12, restart should occur at the failed job (HCL Workload Automation for Z operation).

The preceding actions apply to the time range specified by the STARTTIME and ENDTIME parameters of the AROPTS automatic recovery initialization statement. If the job fails at another time, it gets the ended-in-error status and remain on the ended-in-error list. The scan for recovery statements can be repeated at a later time; see Recovery actions from the Modifying Current Plan panel.