Previous Topic: ExampleNext Topic: Commands


Batch Return Codes

Return codes appear in CA File Master Plus for batch messages. A description of the valid return codes follows:

Code

Description

0

Successful completion of the job's step. No errors or warnings were detected.

4

The step completed successfully, but warning messages were issued.

16

A severe error occurred and the command could not continue processing. The command is terminated.

0 - 4095

Keyword return code value. This is supplied by the following keywords: COMPRC, EMPTYRC, LAYOUTRC, NOSELRC, SETRC, and TRUNCRC. Examine the control statements and SYSPRINT messages for the reason associated with the specific return code.

The following table lists the return codes customizable in options member CAWAOPT and their installed default values. You can find a complete list of customizable values in Appendix A.

CAWAOPT Parameter

Default Value


Description

&BAT_COMPRC

4

Return code when mismatches are identified during COMPARE processing.

&BAT_EMPTYRC

4

Return code when the input file is empty.

&BAT_LAYOUTRC

4

Return code when the dsname for keyword LAYOUTFILE is not found.

&BAT_NOSELRC

4

Return code when no records meet any of the selection criteria.

&BAT_TRUNCRC

4

Return code when output records are truncated.