COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-113
SEARCH and NOSEARCH
object-name
is a name that designates an TNS/R object file—either a file-system file name
or (in the Guardian environment) a DEFINE name. In the OSS environment,
object-name must be an OSS pathname. If the file-system file name is not
fully qualified with system, volume, and subvolume names, the compiler uses
the current default system, volume, and subvolume names or those specified
by an =_OBJECT_SEARCH DEFINE (see =_OBJECT_SEARCH).
For the COBOL85 compiler, BINSERV binds only the object code for programs
that the program it is compiling actually calls, not necessarily the entire file
designated by object-name. For the NMCOBOL compiler, the linker links the
entire file designated by object-name.
For the NMCOBOL compiler, object-name must designate either a linkfile or
an archive file.
When an archive file is searched, the entire archive file is generally not linked
into the target object file. Only those member files are linked that contain
procedures named in CALL or ENTER statements in the COBOL program
being compiled. Whenever a procedure is needed from a member file, the
entire member file is linked.
If a native HP COBOL program references the object in a CALL or ENTER
statement, the object must have been compiled with symbols.
If more than one SEARCH directive appears, the file names are appended to the list in
the order read.
Default: NOSEARCH
Placement: Anywhere
Scope: Applies to the compilation unit
Dependencies: None
References:
•
RUNNABLE
•
CONSULT and NOCONSULT