LIBRARY control statement

The LIBRARY control statement has the following syntax:

NOOMVS: The syntax for NOOMVS is as follows.
Read syntax diagramSkip visual syntax diagram
                                 .------------------.        
                                 V                  |        
>>-LIBRARY--+-+-name-------+--(----+-member-------+-+--)-+-----><
            | '-'--name--'-'       '-'--member--'-'      |   
            |           .--------------------.           |   
            |           V                    |           |   
            '-+---+--(----+-external-------+-+--)--------'   
              '-*-'       '-'--external--'-'                 

OMVS: The syntax for OMVS is as follows.
Read syntax diagramSkip visual syntax diagram
>>-LIBRARY----name---------------------------------------------><

name
the name of a DD that defines a library, under z/OS®. This could be a concatenation of one or more libraries that are created with or without the object library utility. You can use the same kinds of continuations that you can for the variable on the IMPORT control statement.
member
the name or alias of a member of the specified library. Because both short names and long names can be specified, case distinction is significant. If you use an long name, you can use the same kinds of continuations that you can for the variable on the IMPORT control statement.

Under z/OS, 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 option, the only form of the LIBRARY card the prelinker accepts is LIBRARY ddname statement in SYSLIB.

external
an external reference that may be unresolved after primary input processing. An Automatic Library call will not resolve this external reference. Because both short names and long names can be specified, case distinction is significant. If you use an long name, you can use the same kinds of continuations that you can for the variable on the IMPORT control statement.
Note: 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.