ERRORS_OK

Normally, if a file error occurs and there is no AT END, INVALID KEY, or Declarative statement to handle it, the runtime system prints an error message and halts. You can cause the runtime to ignore file errors and continue processing by setting ERRORS_OK to either 1 (on, true, yes) or 2 (FILESTATUS).

By default, ERRORS_OK is set to 0 (off, false, no).

When ERRORS_OK is set to 1, if a file error occurs the runtime continues as if no error occurred.

When ERRORS_OK is set to 2, if a file error occurs and there are no Declaratives but a file status variable is defined, the runtime ignores the error and continues processing. However, if a file error occurs and there are no Declaratives and a file status variable is not defined, the runtime halts.

Note: In general, it is not recommended that you configure the runtime to ignore file errors.