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-9
TEDIT Editor
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.
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
Example 22-1. TEDIT Banner
1) \NODE1.$VOL3.SUBVOL2.PAYROLS 1/24 (BOF) 1:79 D20.