COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
• pTAL and TAL
• TACL
When you open a source file, the appropriate language-specific menu appears on the menu bar.
For all languages, you can search (GREP) commands in the file, keywords are chromacoded (see
Chromacoding), and you can save function call parameters in the dictionary for later use (see
Dictionaries and Templates).
For HP C and HP C++, you can create or insert modules or work with #PRAGMAS and #INCLUDES.
For HP C++, you have additional support for creating classes and class members.
For COBOL, you can view source code by paragraph and search (GREP) by paragraph.
For pTAL and TAL, you can generate HP C prototypes from TAL procedures by pointing and clicking;
insert ?PROC, ?SECTION, or ?PAGE; and check references.
Dictionaries and Templates
TEC maintains four project dictionaries: user, parameter, class, and system. Information can be
stored and retrieved from these dictionaries and used in conjunction with comment generation (see
Comment Headers and Parameter Documentation).
You can define text templates that contain values for function parameters. The values are defined
when you insert the template into the dictionary. When you direct TEC to call a function, TEC calls
it with the parameter values that you specified.
Chromacoding
Language-dependent chromacoding enables you to select colors to enhance the visibility of
comments, keywords, strings, numbers, preprocessor commands, changed lines, and braces. You
can set the colors you select in Document Preferences in TEC version 3.0.
Project Definition
In addition to the basic project information supplied by Codewright itself, TEC allows you to define
and change a set of dictionary specifications and search directories to facilitate locating source
files.
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.
752 Creating and Compiling HP COBOL Source Programs










