COBOL Manual for TNS and TNS/R Programs
Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
22-4
Editing and Reexecuting Previous Commands
Editing and Reexecuting Previous Commands
If you enter the command FC, TACL displays the last command so that you can edit it:
8> fc
8> view myfile
8...
You can edit the displayed command (view myfile) with the commands D (delete),
I (insert), and R (replace). When you press Return, TACL displays the edited
command. You can continue to edit the command or press Return. When you press
Return without editing the command, TACL executes the command.
8> fc
8> view myfile
8.. dd
8> view file
8.. isrc
8> view srcfile
8.. r1
8> view srcfil1
8.. e1
8> view srcfile1
8...
The absence of a D, I, or R command is handled as an R command (last change in
the preceding example).
If you enter the FC command followed by a number, TACL displays the command with
that number so that you can edit it:
9> fc 2
9> fileinfo
9...
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.