How does ESP know when a manual job fails, if Encore is not used?
search cancel

How does ESP know when a manual job fails, if Encore is not used?

book

Article ID: 52431

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to setup a manual job without Encore to detect a failure.

Environment

 

Cause

ESP does not know when a manual job fails if you are not using Encore.

Resolution

You need to insert CCCHK parameter to specify what action to take if a job step or procstep is considered OK or FAILED (See examples below).

Example#1 - A condition code greater than zero in STEP10 causes JOBA to fail.

APPL TESTA                      
JCLLIB 'yourpdslibrary'                                  
JOB JOBA
  CCCHK STEP(STEP10) RC(1:4095) FAIL      
  RUN ANY                                                       
ENDJOB                                

          
Example#2 - A condition code of 12 produced by the program IEBGENER for JOBB is acceptable.

APPL TESTB                      
JCLLIB 'yourpdslibrary'                                  
JOB JOBB
  CCCHK PROGRAM(IEBGENER) RC(12) OK     
  RUN ANY                                                       
ENDJOB