COBOL Manual for TNS/E Programs (H06.03+)
Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs—520347-003
22-12
Compiling an HP COBOL Source Program
Viewing Source Files
TEC allows you to view or collapse source files by function, #PRAGMA, paragraph, or
normal view. This feature helps you to locate code quickly by higher-level code
segments and to provide a call map of the selected module. After you have located the
code, you can return the source program to its normal expanded view.
Comment Headers and Parameter Documentation
TEC allows you to automatically create and maintain information in comment boxes,
particularly for the beginning and end of each module. After you have entered
parameters into the parameter/comment dictionary (by pointing and clicking), TEC
automatically retrieves their definitions for building other parameter list comment
boxes.
Compiling an HP COBOL Source Program
The compiler translates HP COBOL source programs into machine language.
The ECOBOL compiler does not interact with the eld utility, but if you specify the
CALL-SHARED and RUNNABLE directives, and there are no compilation errors, the
ECOBOL compiler calls the eld utility, which produces a PIC loadfile. If you specify the
SHARED and RUNNABLE directives, and there are no compilation errors, the
ECOBOL compiler calls the eld utility, which produces a DLL.
From the user’s viewpoint, compilation is a single-step process. (If you are interested
in the details of the compilation process, see Compilation Details.
Topics:
•
Running the Compiler
•
Naming the Object File
•
Specifying the Default COPY Library
•
Specifying Compiler Directives
•
Specifying Subvolumes to Be Searched for Unqualified Files
•
Changing the Compilation Environment
•
Improving Compilation Speed
•
Launching Compilations to Run Unattended










