COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programsā522555-006
11-19
CALL and ENTER Statement Processing: Detailed
Explanation
b. If no file-mnemonic appears:
The COBOL85 compiler looks for the program in the current search lists, in this
order:
1. Primary search list
2. Secondary search list
3. Tertiary search list
If the COBOL85 compiler does not find the program in any of the search lists,
and the language is TAL, the compiler searches the COBOLEXT file located
on the same volume and subvolume as the compiler. You can also use the
predefined SEARCH DEFINEs to specify one or more subvolumes to be
searched for unqualified files (see Predefined SEARCH DEFINEs). An
unqualified file is one that is not defined with a subvolume or additional
qualifiers.
The NMCOBOL compiler looks for the program in these files in this order:
1. Primary search list
2. Tertiary search list
3. ZCOBSRL
4. ZCRESRL
5. NMCOBEXT
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.
Table 11-2 through Table 11-4 summarize the preceding information.
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 11-2. Resolution of External References
(COBOL85 Compiler With No Search List Defined) (page1of2)
Form
1
External reference found in ...
Target File
Created?MNEM
Current
Source File COBOLEXT
CALL āPā IN MNEM Yes Irrelevant Irrelevant Yes
No Irrelevant Irrelevant No, error reported
1. Bracketed items are optional.
2. For the COBOL85 compiler, language is HP C, FORTRAN, or Pascal. For the NMCOBOL compiler,
language is HP C or TAL.
3. This form must be qualified when no search list is defined and the called routine is not in COBOLEXT or
NMCOBEXT.