Cisco Cisco Workload Automation 6.3 User Guide
29
Configuring the z/OS Agent
Configuring the z/OS Agent
Any step ending with a condition code that matches any of the criteria specified in the config file means that the step is
considered to have completed normally. Multiple criteria may be specified for the same step by listing the step more than
once with different values. For example, if you wanted a step to be considered normal if it completes with a condition
code value of 0, 4, 8 and 16 (but not 12), you could add the following lines to the config file:
considered to have completed normally. Multiple criteria may be specified for the same step by listing the step more than
once with different values. For example, if you wanted a step to be considered normal if it completes with a condition
code value of 0, 4, 8 and 16 (but not 12), you could add the following lines to the config file:
JOB01.STEP01.PROC01=4
JOB01.STEP01.PROC01=8
JOB01.STEP01.PROC01=16
Keep in mind that the step will be evaluated as normal if any of the conditions are true. If you add the line
JOB01.STEP01.PROC01>1000
then the step completes normally only if the condition code value is 0, 4, 8, 16 or
greater than 1,000. Any other value that is returned is considered abnormal.
If you list multiple condition codes values, be sure to list specific step masks before any more generic masks. The values
for job, procstepname, jobstepname and condition code are retrieved from each of the job log’s IEF142I messages during
evaluation.
for job, procstepname, jobstepname and condition code are retrieved from each of the job log’s IEF142I messages during
evaluation.
Condition Code Evaluation Examples
The following is an example for jobs that do not use a job PROC. In this case, the condition code value of 4 for (job)
SETCC1.
(job step)
STEP1
means the job completed normally.
SETCC1.STEP1=4
You can specify more than one control card for a job step, in this case both condition codes 4 and 8 for
SETCC1.STEP1
will be normal (ignored):
SETCC1.STEP1=4
SETCC1.STEP1=8
for a list of the operands available for use
when configuring condition codes.
Examples of control cards for jobsteps are provided here:
Control Card
Meaning
SETCC2.STEP1<>8
Any return code less than 8 or greater than 8 from job SETCC2, job step STEP1 is ignored
(considered normal). Only condition code 8 would be considered abnormal.
(considered normal). Only condition code 8 would be considered abnormal.
SETCC4.STEP2<=12
Any return code less than or equal to 12 from job SETCC4, job step STEP2 is ignored
(considered normal). Any condition code above 12 would be abnormal.
(considered normal). Any condition code above 12 would be abnormal.
SETCC4.STEP3>=16
Any return code greater than or equal to 16 from job SETCC4, job step STEP3 is ignored
(considered normal). Any condition code lower than 16 would be abnormal.
(considered normal). Any condition code lower than 16 would be abnormal.
SETCC4.STEP4<20
Any return code less than 20 from job SETCC4, job step STEP4 is ignored (considered
normal). Any condition code 20 or above would be abnormal.
normal). Any condition code 20 or above would be abnormal.
SETCC4.STEP5>24
Any return code greater than 24 from job SETCC4, job step STEP5 is ignored (considered
normal). Any condition code less than 24 would be abnormal.
normal). Any condition code less than 24 would be abnormal.