Two repositories can be used during compilation:
For input: this repository, which could also consist of a hierarchy of libraries, is searched for the interfaces being used.
For output: this repository is used to store the interface definition of the source text being compiled. Only a single library is possible in this case.
Repository data is stored in PLAM libraries as elements of type X (see section "Input from PLAM libraries").
The link names of the the files from which entries of the repository are to be imported can be specified using ADD-FILE-LINK commands.
These link names are REPLIB, REPLIB1,...,REPLIB9 and must be assigned by the user before the compiler is called. The files are searched in the specified order until a suitable interface definition is found.
If no repository entry is found in these libraries or no repository is specified, the library SYS.PROG.LIB is searched.
The link name for the library in which the output of an interface is to be placed is REPOUT. This library, which is also specified via a ADD-FILE-LINK command, could also be one of the input libraries.
If no link name is specified, the library SYS.PROG.LIB is used for the output by default. This output occurs only if UPDATE-REPOSITORY=YES has been specified.