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

Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs520347-003
22-4
Creating or Altering an HP COBOL Source Program
If you enter the FC command followed by text, TACL displays the most recent
command that begins with that text so that you can edit it:
10> fc view
10> view srcfile1
10...
TACL also allows you to program the function keys on your terminal and write macros.
For more information about TACL, see the TACL Reference Manual.
Creating or Altering an HP COBOL Source
Program
The compiler accepts source lines from any sequential file. On NonStop systems, the
most common way to create or alter a HP COBOL source program is to use an HP
editor or Starbase Corporation’s Codewright smart language editor with HP Extensions
for Codewright.
HP offers two editors, EDIT and PS TEXT EDIT (abbreviated “TEDIT”). Both editors
create and allow you to alter the same type of file, the EDIT format file (abbreviated
“EDIT file”).
Both HP editors and Codewright smart language editor allow you to:
Create a new file
Enter lines in a file
Copy lines from one file into another file
Move lines from one place in a file to another place in the same file
Duplicate lines from one place in a file to another place in the same file
Delete lines from a file
Change one portion of text to another throughout a range of lines in a file
List the lines that a file contains
Whether or not you use an HP editor, your HP COBOL source file must conform to a
reference format that the compiler accepts.
Topics:
EDIT Files
Reference Format
EDIT Editor
TEDIT Editor
HP Tandem Extensions for Codewright (TEC)