COBOL Manual for TNS/E Programs (H06.03+)
Program Compilation
HP COBOL Manual for TNS/E Programs—520347-003
11-10
CALL and ENTER Statement Processing: Overview
For more information, see:
•
Primary Search List
•
Tertiary Search List
•
ECOBEXT File
•
ECOBEX0 and ECOBEX1 Files
Primary Search List
SEARCH directives define the primary search list, an ordered list of object files. Each
SEARCH directive adds one or more files to the primary search list. The compiler adds
files to the search list in the order that they appear in the SEARCH directives. When
trying to resolve unqualified external references, the compiler searches the files of the
primary search list in the order that they appear. If the compiler resolves an external
reference from the primary search list, the object program that the compiler finds is
bound into the target file.
Tertiary Search List
CONSULT directives define the tertiary search list. Each CONSULT directive adds one
or more files to the tertiary search list. The compiler adds files to the search list in the
order that they appear in the CONSULT directives. When trying to resolve unqualified
external references, the compiler searches the files of the tertiary search list in the
order that they appear. If the compiler resolves an external reference from the tertiary
search list, the object program that the compiler finds is not bound into the target file.
Programs resolved from the tertiary search list do not have to be in the system library.
They can be elsewhere and can be bound in later or can be referenced in a run-time
library.
ECOBEXT File
If you did not provide search lists, or if the compiler did not find the necessary external
references on them, in ZCOBDLL, or in ZCREDLL, it uses the ECOBEXT file to
perform parameter validation, but does not import any object code. Programs resolved
from ECOBEXT are available to the program at load time.
When you install the ECOBOL compiler, the ECOBEXT file is stored on the subvolume
$SYSTEM.SYSTEM. If you move the ECOBEXT file to another subvolume, use the
CONSULT directive to tell the compiler where to find it.
Note. The preceding paragraph applies only to the NonStop system. For the locations of files
on the PC, see NonStop COBOL for TNS/E (ETK).










