COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
2. If the compiler has not yet encountered the routine-name during the current compilation,
the compiler conducts a search for the program:
a. If file-mnemonic appears, the compiler tries to find a program with the specified
name in the file associated with file-mnemonic. If the compiler finds the program, it
verifies that language is the language in which the program was written. If the compiler
does not find such a program, it reports an error.
b. If no file-mnemonic appears:
The compiler looks for the program in these files in this order:
i. Primary search list
ii. Tertiary search list
iii. ZCOBDLL
iv. ZCREDLL
v. ECOBEXT
c. If the compiler cannot find the program in any of the places discussed earlier, it reports
an error and delivers no object code for the calling program.
NOTE: If routine-name specifies an HP C or HP C++ function whose name includes
lowercase letters, the call fails, because the compiler automatically converts all names to
uppercase.
Table 71 summarizes the preceding information.
Table 71 Resolution of External References
External reference found in ...
Target File
Created?
Tertiary Search
ListPrimary Search ListCurrent Source FileForm *
ECOBEXT,
ZCOBDLL, or
ZCREDLL
Search list not used—CALL is qualifiedCALL “P” IN
MNEM
YesIrrelevantIrrelevantIrrelevantYesCALL “P”
YesIrrelevantIrrelevantYesNo
Yes, with
un-resolved
IrrelevantIrrelevantNoNo
externals; warning
issued
Search list not used—ENTER is qualifiedENTER
language “R”
IN MNEM
YesIrrelevantIrrelevantYesImpossibleENTER
[language ] “R”
No, error reportedIrrelevantIrrelevantNoImpossible
Search list not used—ENTER is qualifiedENTER [TAL] “R”
IN MNEM
YesIrrelevantIrrelevantYesImpossibleENTER [TAL] “R”
YesIrrelevantYesNoImpossible
YesYesNoNoImpossible
No, error reportedNoNoNoImpossible
* Bracketed keywords are optional.
Compilation Details 521










