COBOL Manual for TNS/E Programs (H06.03+)

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs520347-003
22-9
TEDIT Editor
Topics:
Second Window
TEDIT Commands
Customizing the TEDIT Editor
Second Window
The TEDIT editor allows you to open a second window. Some of the tasks that the
TEDIT editor allows you to do with two windows are:
Display two parts of the same file (such as the first 10 lines and the last 10 lines)
Display two different files (such as the source text and a COPY library)
Copy text from one window to the other
Display only window 1, only window 2, or both windows
Close one window and open it to a third file
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.