TAL Reference Manual
Compiler Directives
TAL Reference Manual—526371-001
16-58
LIBRARY Directive
LIBRARY Directive
LIBRARY specifies the name of the TNS software user run-time library to be
associated with the object file at run time.
file-name
specifies a user run-time library to search before searching the system library to
satisfy external references.
file-name must be the name of a disk file. It cannot be
the name of a TACL DEFINE or a TACL ASSIGN logical file.
You can specify partial file names as described in Appendix E in the
TAL Programmer’s
Guide. The compiler uses the current default volume and subvolume names as
needed. For this directive, the compiler does not use TACL ASSIGN SSV information
to complete the file name.
Usage Considerations
This directive can appear in the compilation command or anywhere in the source code.
After compilation, you can change the library name by using Binder commands or by
using the LIB option of the TACL RUN command.
Example of LIBRARY Directive
This example specifies that a user library named MYLIB be associated with the object
file at run time:
!Lots of code
?LIBRARY mylib
!More code
About User Libraries
A user library is a set of procedures that the operating system can link to a program file
at run time. User libraries are available in TAL and FORTRAN and COBOL85
programs, but not in Pascal.
User libraries provide many benefits to programs. You can place commonly used
procedures in a user library:
•
To reduce the storage required for object code on disk and in main memory
•
To share a set of common procedures among applications
VST1636.vsd
LIBRARY
file-name