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

Program Compilation
HP COBOL Manual for TNS/E Programs520347-003
11-24
Predefined SEARCH DEFINEs
To add a predefined SEARCH DEFINE, use the ADD DEFINE command. For example:
ADD DEFINE =_SOURCE_SEARCH, CLASS SEARCH, SUBVOL0
(=_DEFAULTS,$VOL1.SUB2,$VOL1.SUB3)
In this example, the compiler is to search the default subvolume first, then
$VOL1.SUB2, and finally $VOL1.SUB3.
=_SOURCE_SEARCH
=_SOURCE_SEARCH tells the compiler where to search for unqualified source text
files specified by:
COPY statements
SOURCE directives
The copy-library parameter of the compilation command
The =_SOURCE_SEARCH DEFINE does not affect compiler searches in these cases:
When the source text file name is qualified
When the program uses the default COPY library, COPYLIB, for COPY text
=_OBJECT_SEARCH
=_OBJECT_SEARCH tells the compiler where to search for unqualified object files
specified by:
SPECIAL-NAMES paragraph
CALL statements
ENTER statements
CONSULT directives
LIBRARY directives
SEARCH directives
The =_OBJECT_SEARCH DEFINE does not affect:
The compiler search when the object file name is qualified
The file ECOBEXT, which is assumed to be on the same subvolume as the
compiler