Product Documentation

FairCom RTG COBOL Edition User's Guide

Previous Topic

Next Topic

<keycheck>

The keycheck option specifies whether to check that all the keys belonging to an indexed file are defined in the COBOL program. If this option is enabled, keys must match key definitions otherwise an error is returned. If this option is disabled, files containing more keys than described in a COBOL program are allowed. Files that contain fewer keys than key definitions are never allowed regardless of the keycheck setting. Disabled by default.

The keycheck configuration does not apply to isCOBOL and ACUCOBOL because these COBOL runtimes perform checks on the key structure.

Accepted Values

Value

Effect

Synonyms

yes

All key definitions must match otherwise an error is returned during OPEN operations.

y, true, on, 1

no

Open the file even if it contains more indexes than the key definitions. (default)

n, false, off, 0

Example

<keycheck>no</keycheck>

TOCIndex