LIBRARY control statement

The LIBRARY control statement has the following syntax:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-LIBRARY------------------------------------------------------>

              .---------------.     .-------------.     
              V               |     V             |     
>----name--(----+--------+--)-+--(----external--)-+------------><
                '-member-'                              

name
The ddname defining a library. The ddname can point to an archive file in the z/OS UNIX file system if the OE option is specified, or a PDS object library. The PDS object library can be a concatenation of one or more libraries created with or without the Object Library Utility.
member
The name or alias of a member of the specified library. Because both S-names and L-names can be specified, case distinction is significant.

Automatic library calls search the library and each subsequent library in the concatenation, if necessary, for the name instead of searching the primary input.

If you specify the OMVS or OE prelinker option, the only form of the LIBRARY card accepted by the prelinker is LIBRARY ddname, which specifies a library to search immediately for autocall.

external
An external reference that could be unresolved after primary input processing. This external reference will not be resolved by an automatic library call. Because both S-names and L-names can be specified, case distinction is significant.

The LIBRARY control statement is removed and not placed in the prelinker output object module; the system linkage editor does not see the LIBRARY control statement.