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-11
HP Tandem Extensions for Codewright (TEC)
Language-Sensitive Programming Support
TEC provides language-specific menus to support the coding of these HP languages:
•
HP C and HP C++
•
COBOL
•
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.










