Previous Topic

Next Topic

Book Contents

Book Index

Code values

Code values can be condition codes, user abend codes, system abend codes, various end codes and statuses, and certain keywords. They can also be prefaced by certain qualifiers. All of these are described below.

A maximum of 245 codes can be specified for any On step statement, as follows:

Step not executed (FLUSH)

The FLUSH code generally applies when a step does not run but no error is indicated. This code is assigned when:

For reasons of backward compatibility (that is, to ensure that the application of the Job was queued for execution code remains unchanged), the Job was queued for execution code does not include FLUSH steps.

Step not executed

A step is defined as code step not executed if it did not run. This code includes:

Step not executed cannot be specified together with Any program step. (Because Step not executed includes steps that do not exist in a job, and any program step includes all step names even if they do not exist in a job, specifying both in the same job would cause a condition that Step not executed could not process.).

A status of Step not executed does not indicate that an error occurred during a job execution, nor does it cause a job status of NOTOK. It only indicates that it did not run.

For backward compatibility (that is, to ensure that the application of the Job was queued for execution code remains unchanged), the Job was queued for execution code does not include Step not executed steps.

Code qualifiers and relationships

Any character in a condition code, system abend code or user abend code may be replaced by an asterisk (*). An asterisk means "any value" for the character it replaces. For example, if S*13 is specified, the code criteria for the step is satisfied by codes S013, S613, S913, and so on.

The additional qualifiers in the following table can be used in specific circumstances.

Qualifier

Description

>

Greater than. Valid as a qualifier for condition codes and user abend codes.

<

Less than. Valid as a qualifier for condition codes and user abend codes.

N

Specifies not to perform the accompanying DO statements if the specified code exists in the step. Valid as a qualifier for condition codes, user abend codes and system abend codes.

The N qualifier indicates that the DO statements must not be performed if the specified condition exists. It does not indicate that the DO statements must be performed if the specified condition does not exist.

The relationship between multiple codes in an On statement is OR (that is, the appearance of any of the codes in the specified step satisfies the On criteria), except for range specifications (for example, >10 <40).

However, code criteria qualified by N take precedence over all other code criteria. If a code that is specified with an N qualifier is generated by the specified step, accompanying DO actions are not performed even if other On code criteria are satisfied.

If Step1 ends with a condition code of C0004 and Step 5 ends with system abend code S0C4, perform the indicated notification.

On Statement PGMST= Step1 PROCST= Codes=C0004 AND

On Statement PGMST= Step5 PROCST= Codes=S0C4

Notify To=emuser Urgn=Regular Msg= Backup operations ...

Parent Topic

On/Do Actions