CHECK is also a compile time option. When set, the COBOL runtime system checks the following items:
The subscript and the index boundaries, and reference modification
Numeric data exceptions and divide-by-zero errors
Parameters for calling a method
Program calling conventions
A message is output when one of these items goes out of range.
A count can be specified so that the message is only displayed after a certain number of occurrences.