CHECK

CHECK causes checking errors to be flagged. In COBOL, index, subscript, and reference-modification ranges can cause checking errors.

CHECK option syntax

Read syntax diagramSkip visual syntax diagramCHECK(ONOFF)

Default is: CHECK(ON)

Abbreviation is: CH

ON
Specifies that runtime checking is performed
OFF
Specifies that runtime checking is not performed

Usage note: CHECK(ON) has no effect if NOSSRANGE was in effect during compilation.

Performance consideration: If you compiled a COBOL program with SSRANGE, and you are not testing or debugging an application, performance improves if you specify CHECK(OFF).