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

If you enter an exclamation mark followed by a number, TACL displays and executes the command
with that number:
6> !4
6> history
1> who
2> fileinfo
3> view myfile
4> history
5> history
6> history
7>
If you enter an exclamation mark followed by text, TACL displays and executes the most recent
command that begins with that text:
7> !v
7> view myfile
8>
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.
746 Creating and Compiling HP COBOL Source Programs