COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Table 83 CHECK Levels
CommentsWhat is Checkedcheck-level
CHECK 0 results in the fastest execution time.Nothing0
CHECK 1 might have a different meaning in future versions
of HP COBOL. For the fastest execution (and no subscript
Nothing1 (default)
checking) in current and future versions of HP COBOL, specify
CHECK 0.
Validity of subscripts and indexes*2
Validity of subscripts, indexes, and
reference modifiers*
3
Specifies the maximum level of checking that HP COBOL
currently provides.
Validity of subscripts, indexes,
reference modifiers, and certain
data conversions*
4
5-15 might have different meanings in future versions of
HP COBOL. For the maximum level of checking that
Validity of subscripts, indexes,
reference modifiers, and certain
data conversions*
5-15
HP COBOL currently provides, specify CHECK 4. For maximal
checking, specify CHECK 15 (which could increase the
program’s run-time overhead in future versions of HP COBOL
if additional checking levels are implemented).
* The compiler generates extra code in order to check the validity of these items.
At run time, if the subscript or reference modifier used in a statement is out of range, or if an invalid
DISPLAY data item is part of implicit or explicit conversions from DISPLAY to COMP or NATIVE,
an error is reported, and the execution terminates.
CODECOV
CODECOV directs the compiler to generate instrumented object code for use with the Code
Coverage Tool. For detailed information about the Code Coverage Tool, see the Code Coverage
Tool Reference Manual.
NOTE: Instrumented object code can experience greatly reduced performance. Therefore, the
CODECOV directive should be used only in a test environment. See the caution under Chapter 15:
Debugging Tools (page 699), which indicates how CODECOV affects debugging applications. For
information on instrumented object code, see Generating Instrumented Object Code for Use With
the Code Coverage Tool (page 525).
No code coverage instrumentation is included in the generated object file.Default:
On the command linePlacement:
Applies to the compilation unitScope:
NoneDependencies:
COLUMNS
COLUMNS causes the compiler to ignore any text beyond a certain column in subsequent input
records.
COLUMNS applies only to text being read under Tandem reference format. Text being read under
ANSI reference format ignores any text beyond column 72.
542 Program Compilation










