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

Issues Related to Linking
HP COBOL Manual for TNS/E Programs520347-003
24-6
Linking
Unresolved References
If an external reference in an object file refers to an entry point that is not among the
code blocks in that object file, the external reference is called unresolved. Unresolved
external references cause warning messages, but are allowed. They are expected to
be resolved by the fixup operation of the system loader. If the compiler cannot resolve
an external reference to a non-COBOL routine, it must at least be able to validate it.
When the compiler processes a CALL statement that calls another COBOL program,
but cannot find the other COBOL program, it delivers a warning message and
produces an object file.
Figure 24-3. How External References Are Resolved
Enter
Exit
Primary
search list?
Tertiary
search list?
Search files on
primary search
list in order
Search files on
tertiary search
list in order
Search
COBOLEXT,
NMCOBEXT,
ZCOBSRL, or
ZCRESRL
Mnemonic
name?
TRUE
Search specified
file
Find
routine?
FALSE
TRUE
TRUE
FALSE
TRUE
TRUE
FALSE
TRUE
TRUE
FALSE
Issue error
message
FALSE
FALSE
FALSE
Issue error
message
Find
routine?
Find
routine?
Find
routine?
VST210.vsd