CHECK (COBOL only)

If your COBOL application was compiled with the SSRANGE compile option, specifying the CHECK(ON) runtime option enables range checking of each index, subscript, and reference modification.

The default value for non-CICS applications is CHECK(ON).

The default value for CICS® applications is CHECK(ON).

Read syntax diagramSkip visual syntax diagram
Syntax

             .-ON--.      
>>-CHeck--(--+-----+--)----------------------------------------><
             '-OFF-'      

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

Usage notes

CHECK(ON) has no effect if the NOSSRANGE COBOL compile option was specified.

Performance consideration

If your COBOL program was compiled with the SSRANGE compile option, and you are not testing or debugging an application, performance improves when you specify CHECK(OFF). For COBOL 4.2 and earlier you can disable the SSRANGE code with CHECK(OFF). For COBOL 5.1 and later, you cannot disable it.