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

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs520347-003
22-8
TEDIT Editor
TEDIT Editor
The TEDIT editor is a full-screen editor with a command line. Overall, the TEDIT editor
is more powerful than the EDIT editor. The TEDIT commands SEARCH and REPLACE
have powerful pattern-matching abilities, with single-character, multicharacter, and set-
of-characters wild cards.
To call the TEDIT editor, type its name at the TACL prompt (case is unimportant):
81> TEDIT
The TEDIT editor clears the screen and displays a help screen that explains its
function. At the bottom of the help screen, it asks you for a file name:
(To EXIT press CTRL-Y) File: PAYROLS
You can also call the TEDIT editor with a file name:
82> TEDIT PAYROLS
If you call the TEDIT editor with a file name, it does not display the help screen. If the
file you specified exists, the TEDIT editor clears the screen and displays the first 24
lines of the file and a banner on line 25. The banner contains:
The window number (you can open a second window)
The file name, fully qualified with node, volume, and subvolume names
The range of lines displayed (with “(BOF)” if you are at the beginning of the file and
“(EOF)” if you are at the end of the file)
The version of the TEDIT editor you are using
If the TEDIT editor cannot find the PAYROLS file, it clears the screen and displays:
\NODE1.$VOL3.SUBVOL2.PAYROLS doesn’t exist.
OK to create? Respond Y or N:
To exit the TEDIT editor, press Shift and F16 simultaneously.
These topics briefly describe the TEDIT editor’s second window, commands, and
customizing. For complete information about the TEDIT editor, see the PS TEXT EDIT
Reference Manual and the PS TEXT EDIT and PS TEXT FORMAT User’s Guide.
Caution. The TEDIT editor works on your original file, not on a copy of it. If you want to
provide for the possibility of discarding an entire editing session, you must make a backup
copy yourself. You can make the backup copy before editing the file, with the File Utility
Program (FUP) DUP command, or you can use the WRITE command from within the TEDIT
editor to make a copy at any time.
Example 22-1. TEDIT Banner
1) \NODE1.$VOL3.SUBVOL2.PAYROLS 1/24 (BOF) 1:79 D20.