COBOL Manual for TNS and TNS/R Programs

Program Compilation
HP COBOL Manual for TNS and TNS/R Programs522555-006
11-2
Compiler Input
Topics:
Compiler Input
Compilation Details
Compiler Output
Running the Compiler
Compiler Directives
Compiler Input
Input to the compiler is always a single source file, but that source file can read text
from other source files (using SOURCE directives and COPY statements). The source
file that is input to the compiler and the source files from which it reads text can contain
one or more source programs. One of these source programs can be a main program.
The source programs can call each other, and, under some circumstances, they can
also call non-COBOL programs. The source file that is input to the compiler is also
called a compilation unit.
Topics:
Main Programs
Calling and Called Programs
How an HP COBOL Program Calls a Non-COBOL Program
Compilation Units
Figure 11-1. Compiler Input and Output
Source
File
Compiler
Object
File
Listing
File
(affected by NOLIST and
SUPPRESS directives)
(affected by SYNTAX
directives and errors)
VST515.vsd