COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
5. When the compiler reaches the end of the source text, it issues a warning if it was unable to
resolve any program references. You must supply the missing programs (using the linker)
before you execute the loadfile.
Example 150 For Step 1 of Finding the Called Program
IDENTIFICATION DIVISION.
PROGRAM-ID. P. ...
PROCEDURE DIVISION. ...
CALL A ...
...
IDENTIFICATION DIVISION.
PROGRAM-ID. A.
...
END PROGRAM A.
IDENTIFICATION DIVISION.
PROGRAM-ID. B. ...
END PROGRAM B.
END PROGRAM P.
Example 151 For Step 2 of Finding the Called Program
IDENTIFICATION DIVISION.
PROGRAM-ID. S. ...
PROCEDURE DIVISION. ...
IDENTIFICATION DIVISION.
PROGRAM-ID. A COMMON. ...
END PROGRAM A.
IDENTIFICATION DIVISION.
PROGRAM-ID. P. ...
CALL A ...
END PROGRAM P.
END PROGRAM S.
Finding the Entered Program
When it encounters an ENTER or X/Open CALL statement, the compiler follows this procedure:
1. If the compiler has already resolved the reference to the specified routine-name during
the current compilation, the compiler resolves the current reference to that program.
520 Program Compilation










