COBOL Manual for TNS/E Programs (H06.03+)
Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs—520347-003
22-6
EDIT Editor
You can write a COBOL source program entirely in either format or in a mixture of
both. The default is Tandem format. Unless you direct the compiler to accept ANSI
format, the compiler assumes the entire program is in Tandem format.
EDIT Editor
The EDIT editor is not as powerful as the TEDIT editor, but it has some useful abilities
that TEDIT either lacks or does not perform as simply. Examples of both cases are in
this explanation.
To call the EDIT editor, type its name at the TACL prompt (case is unimportant):
93> EDIT
The EDIT editor identifies itself (including version and RVU date) and prompts you with
an asterisk:
TEXT EDITOR - T9601D10 - (08JUN92)
*
To retrieve an EDIT file to work on (in this example, PAYROLS), use the GET
command:
*GET PAYROLS
CURRENT FILE IS \NODE1.$VOL3.SUBVOL2.PAYROLS
You can also call the EDIT editor with a file name:
94> EDIT PAYROLS
TEXT EDITOR - T9601D10 - (08JUN92)
CURRENT FILE IS \NODE1.$VOL3.SUBVOL2.PAYROLS
Figure 22-2. ANSI Reference Format
Caution. The EDIT 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; that is, the EDIT editor does not automatically create a backup file. You can make the
backup copy with the EDIT command PUT.
Column:
Margin:
Area BArea A
87 9 10 11 12 72 73 ... 80
Line
Indicator Field
CA B R
...
Identification Field
123456
L
Sequence
Number
Area
VST524.vsd










