The condition codes that are tested in the IF-THEN-ELSE command
sequence are:
- 0
- The function ran as directed and expected. Some informational
messages can be issued.
- 4
- A problem occurred in executing the complete function, but it
continued. The continuation might not provide you with exactly what
you wanted, but no permanent harm was done. A warning message appears.
An example is:
The system was unable to locate an entry in a LISTCAT
command.
- 8
- A requested function was completed, but major specifications were
unavoidably bypassed. For example, an entry to be deleted or altered
could not be found in the catalog, or a duplicate name was found while
an entry was being defined and the define action ended.
- 12
- The program could not perform requested function. The program
sets this condition code as a result of a logical error. A logical
error condition exists when inconsistent parameters are given, when
required parameters are missing, or when a value for key length, record
size, or buffer space is too small or too large. More information
on logical errors that occur during VSAM record processing is in z/OS DFSMS Macro Instructions for Data Sets.
- 16
- A severe error occurred that erased the remainder of the command
stream. This condition code results from one of the following:
- The program cannot open a system output data set. (For example,
a SYSPRINT DD statement was missing.)
- An irrecoverable error occurred in a system data set
- An access method services encountered improper IF-THEN-ELSE command
sequences.
Condition codes that are tested in the IF-THEN-ELSE command sequence
or set by the SET command cannot be passed from one job step to the
next. However, the maximum condition code value established by any
previous functional command or SET command is passed to the operating
system when the access method services processor returns control to
the system.