The special aspects to be noted when compiling a group of compilation units are discussed below.
Control statements:
Control statements that are specified before the compiler is called apply to all compilation units in the group.
No control statements must come between the compilation units in a group.
Output of listings via SYSLST:
Requested listings are output sequentially in a single SPOOL file in program-specific order.
Output of listings to cataloged files:
If standard names are used, the same number of files is created for each compilation unit in the sequence as the number of requested listings.
If standard link names are used, the creation of files is based on the type of listing: the file linked with OPTLINK contains a single options listing for all compilation units; the file linked with SRCLINK contains all compilation units; the file linked with ERRLINK contains all diagnostic listings, and the file linked with LOCLINK contains all locator map and cross-reference listings.
Output of listings to a PLAM library:
For each compilation group, the number of elements created is equal to the number of listings requested (the options listing is only created once).
Values indicated in monitoring job variables:
The return code of the compilation unit containing the error with the highest error weight is always indicated in the monitoring job variable.
Compiler termination:
If a compilation unit contains an error that aborts compilation of the program, the entire compiler run is terminated, i.e. none of the following compilation units are compiled.
Module output:
A separate module is generated for each compilation unit in the sequence. These modules are entered into the EAM file sequentially, or stored as individual elements in a PLAM library.
Repository output:
A repository entry is created for each compilation unit (if requested).
When working with a repository (especially if a hierarchy is involved) and newly generated repository entries which are to be used in preceding or following programs, special care must be taken to ensure that the desired contents are actually accessed.