How are CCCHK statements processed?
search cancel

How are CCCHK statements processed?

book

Article ID: 234975

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

When coding multiple CCCHK statements what is the expected behavior.

                                     

Environment

Release : 11.4

Component : ESP WORKLOAD AUTOMATION

Cause

Job ended due to the following CCCHK statements coded for the job.

RC=4095 – STOP

and

RC=4095 – CONTINUE.

Resolution

Using Multiple CCCHK Statements:
For a single job, you can specify up to 254 CCCHK statements. When several CCCHKs are active for a single job, their effect is cumulative (unlike the CCFAIL statement). For example, one CCCHK statement might indicate a particular action, and other statements might indicate some exceptional cases.

The Statement Search Order and Statement Scope:
When each step in a job or procedure ends and produces a condition code, CCCHK initialization parameters and statements are searched for a match in the following order:


1) CCCHK statements in a job definition (in the order they occur)
     A matched statement affects the job that the statement is in.
2) CCCHK statements in an application definition (in the order they occur)
     A matched statement affects all jobs in the application the statement is in.
3) CCCHK initialization parameters (in the order they occur)
    A matched statement affects all jobs and applications in the ESP subsystem (including proxies in a master and proxy system).
    When the first match is found, all other statements are ignored and the matching CCCHK is processed for the step.

Additional Information

CCCHK: Specify Job Processing Based on Condition Codes

https://techdocs.broadcom.com/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/reference/initialization-parameters/ccchk-specify-job-processing-based-on-condition-codes.html