FORTRAN Reference Manual

Compiler Directives
FORTRAN Reference Manual528615-001
10-61
SEARCH Compiler Directive
SEARCH Compiler Directive
The SEARCH directive specifies a list of object files for BINSERV to search for
unsatisfied external references at compilation time.
file-name
is the name of a disk file that contains object code produced by the C, COBOL85,
FORTRAN, Pascal, or TAL compiler. file-name can be a DEFINE name.
Considerations
At the end of the compilation, BINSERV searches the files listed in the SEARCH
directive in the order specified. Then, BINSERV searches
$SYSTEM.SYSTEM.FORTLIB.
You can extend the SEARCH directive over more than one line. Begin continuation
lines with a question mark in column one.
A SEARCH directive with an empty file list clears the search list.
The object file produced at the end of the compilation includes copies of the code
and data blocks found by the SEARCH directive. If these code and data blocks
also contain external references, BINSERV uses the search list to satisfy those
external references as well. Thus, the target file contains all required code and
data that is available via the search list.
For additional information, see Section 9, Program Compilation.
Example
?SEARCH ( object1, object2, object3 )
SECTION Compiler Directive
The SECTION directive assigns a name to a section of a source file for use in
SOURCE directive in another source file.
section-name
is a symbolic name of up to 31 characters that can be a combination of A Z, 0
through 9, and the special characters circumflex (^), hyphen (-), and underscore
(_). The first character of the name must be a letter.
SEARCH
SECTION section-name
file name
file name , file name[]. . .()


