COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-93
LIBRARY
LIBRARY
LIBRARY specifies the name of a TNS user library for resolving unqualified external
references.
file-name
is a name that designates an object file. It cannot be a DEFINE name or a file
name on another system. If file-name is not qualified with volume and
subvolume names, the compiler uses the current default volume and subvolume
names to complete the qualification.
Specification of the LIBRARY directive affects the way in which the compilation
resolves unqualified references in ENTER statements. The user library is searched
after the primary search list, and prior to the tertiary search list. See How the Compiler
Resolves Unqualified References.
Default: None
Placement: The compiler accepts it anywhere, but to be effective, it must be before
the main program.
Scope: Applies to the compilation unit
Dependencies: None
Note. The NMCOBOL compiler ignores this directive and issues a warning. To specify a user
library, see Specifying a User Library
.
Default: None
Placement: Anywhere, but the COBOL85 compiler and the Binder do not propagate
LIBRARY from called to calling programs; therefore, calling programs
cannot reference library objects in called programs unless you use one
of these methods:
•
Use a separate bind step on the final object with a SET LIBRARY
file-name command.
•
Use the LIB parameter on the RUN command.
•
Specify the LIBRARY directive on the main compilation.
Scope: The last LIBRARY applies to the loadfile produced by the compilation.
Dependencies: None
LIBRARY file-name
VST289.vsd