COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
You execute TEDIT commands in two ways:
• Press predefined command keys and key combinations (see the TEDIT keyboard template for
your terminal).
• Type the commands on the command line and press Return (to access the command line, press
Shift and Return simultaneously, or use the key specified by the TEDIT keyboard template for
your terminal).
If a command requires parameters and you do not supply them, the TEDIT editor prompts you for
them. SEARCH and REPLACE are examples of TEDIT commands that require parameters.
Customizing the TEDIT Editor
Some ways in which you can customize the TEDIT editor are:
• You can write macros that perform complex tasks with few keystrokes.
• With the RECONFIGURE KEYS command, you can redefine the default keys.
• With the RECONFIGURE OPTIONS command, you can do such things as reset your tab stops
and define delimiter pairs.
You can define up to 10 delimiter pairs, such as left and right parentheses and the commonly
used HP COBOL keyword pairs, such as IF and END-IF. If you establish IF and END-IF as the
delimiters of a balanced expression, you can use FORWARD BALANCE-EXPRESSION to move
the cursor from an IF to its corresponding END-IF.
• You can save your redefined option set in your TEDIT user profile and recall it whenever you
want it with the TEDIT command USEPROFILE.
• You can define different option sets for distinct programming tasks.
HP Tandem Extensions for Codewright (TEC)
Starbase Corporation’s Codewright is a smart language editor that allows you to edit source code
and issue compiler, version-control, and operating-system commands. The base editor facilitates
source code creation with keyword chromacoding, search and replace mechanisms, function
execution, undo and redo commands, and general editing capabilities. Codewright blends a
command shell with its own tools, and you can easily extend it to work with other third-party tools
or dynamic link libraries that you build with your own compiler language. HP has taken advantage
of this extensibility to create HP Tandem Extensions for Codewright (TEC).
The main features of TEC are:
• Language-Sensitive Programming Support
• Dictionaries and Templates
• Chromacoding
• Project Definition
• Viewing Source Files
• Comment Headers and Parameter Documentation
More information on TEC is available through its online help.
Language-Sensitive Programming Support
TEC provides language-specific menus to support the coding of these HP languages:
• HP C and HP C++
• COBOL
Creating or Altering an HP COBOL Source Program 751










