Previous Topic: #SCC StatementNext Topic: Usage Notes


Example

The following statements are examples of the #SCC statement:

#SCC,COND=(16,LT,STEP0030)

In the preceding example, if 16 is less than the condition code value returned from STEP0030, the job is considered as having terminated abnormally.

Note: A condition code test defined on a #SCC statement is applied to ALL steps whose name matches nnnnnnnn until all such steps have been tested or until conditions defined by a #SCC test have been met. Steps are tested in order of execution.

It is possible to exclude only a couple of steps from a global #SCC test by coding multiple #SCC statements with the same RO and condition code:

#SCC,COND=(0,LT,*-STEP5)
#SCC,COND=(0,LT,*-STEP10)

The preceding example would cause all steps of the job except STEP5 and STEP10 to be tested. If the RO or condition code specified are different, each statement would be evaluated separately.