REPOSITORY Directive
The REPOSITORY directive specifies whether information is added to
the external repository. It also specifies whether prototypes and definitions
are checked against the interface information in the external repository.
General Format

Directives
- In addition to the Compiler directives which provide flagging and
modify the reserved word list, the following directives may impact either the
syntax or the semantics described in this section.
-
RDFPATH - specifies the location of the library for
the repository files.
Syntax Rules
- The REPOSITORY directive must be specified only before the first
Identification Division of a compilation unit and must not be specified within
a compilation unit.
- The REPOSITORY directive applies to the remainder of the
compilation group or until another REPOSITORY directive is encountered.
General Rules
- If no REPOSITORY directive is specified, the result is as if the
directive had been specified as:
>>REPOSITORY UPDATE OFF WITH CHECKING.
- If the ON phrase is specified explicitly or implicitly, the
information for a compilation unit is added to the external repository before
the next compilation unit is compiled or at the end of the compilation group if
there is no next compilation unit.
- If the OFF phrase is specified, the external repository is not
updated by the compiler.
- If the CHECKING phrase is specified, a warning mechanism flags a
class-definition or interface-definition that differs from the information
about that source unit in the external repository. Details on the information
in the external repository are specified in the topic
External
Repository in the chapter Language
Fundamentals.