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 : All

Component : ESP WORKLOAD AUTOMATION

Cause

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

CCCHK RC(4095)  STOP

and

CCCHK 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 the statement is code 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  codedin.
  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