Directing external references to a specific library

The LIBRARY control statement can be used to direct the binder to search a library other than that specified in the SYSLIB DD statement. This method resolves only external references listed on the LIBRARY statement, except that if the LIBRARY statement points to a library without naming any specific symbols, that library can be used to resolve any symbols not listed in other LIBRARY statements. All other unresolved external references are resolved from the library in the SYSLIB DD statement.

The LIBRARY statement can also be used to specify external references that should not be resolved from the automatic call library. The LIBRARY statement specifies the duration of the unresolved condition: either during the current binder job step, called restricted no-call; or during this or any subsequent binder job step, called never-call.

Examples of each use of the LIBRARY statement follow. The syntax of the LIBRARY statement is shown in LIBRARY statement.