COBOL Manual for TNS/E Programs (H06.03+)

Program Compilation
HP COBOL Manual for TNS/E Programs520347-003
11-74
SEARCH and NOSEARCH
object-name
is a name that designates a TNS/E 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).
The linker links the entire file designated by object-name.
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 an 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