CC - Error Processing in Batch Mode

#### Search Results

Search

# CC - Error Processing in Batch Mode

This Natural profile and session parameter specifies the action to be taken if an error is detected during the compilation/execution of a Natural program in batch mode.

Possible settings | `ON` | Natural flushes the input data stream for the batch input files `CMSYNIN` and `CMOBJIN` until a line containing `%%` in the first two positions is encountered or until an end-of-file condition is detected. If more data are available in the input stream, Natural resumes reading after the line containing `%%`.
`OFF` | Natural attempts to process the next program (or command) in the input stream.
Default setting | `OFF`
Dynamic specification | yes
Specification within session | yes | Applicable Statements: | `SET GLOBALS`
Applicable command: | `GLOBALS`
Application programming interface | `USR1005N` | See SYSEXT - Natural Application Programming Interfaces in the Utilities documentation.

Notes:

1. This Natural profile and session parameter only applies in batch mode.
2. It does not apply if user-written error-handling routines are used.
3. Within a Natural session, the profile parameter `CC` can be overridden by the session parameter `CC`.
4. When a Natural session terminates, Return Code 4 is passed to the invoking program with Register 15 if an error is detected (regardless of the `CC` setting).