COBOL Manual for TNS and TNS/R Programs

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs522555-006
22-10
TEDIT Editor
TEDIT Commands
Most TEDIT commands consist of a noun (such as LINE, SENTENCE, WINDOW,
BALANCED-EXPRESSION, or REGION) and a verb (such as INSERT, MOVE, COPY,
DELETE, FORWARD, BACKWARD, SEARCH, REPLACE, or UNDO). Some TEDIT
commands also include a repeat count or parameters. Many nouns and verbs are
persistent—that is, you can specify a noun (such as LINE) and apply a series of verbs
to it (such as COPY, MOVE, DELETE), or you can specify a verb and apply a series of
nouns to it; for example, the command
DELETE; LINE; LINE; LINE
deletes the line the cursor is on and the two lines after it.
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.