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-2
Using the TACL Command Log
Using the TACL Command Log
When you log onto an HP system, the HP Tandem Advanced Command Language
(TACL) prompt appears. The TACL prompt includes the command number, which
starts at 1:
1>
Topics:
Displaying Previous Commands
Reexecuting Previous Commands
Editing and Reexecuting Previous Commands
Displaying Previous Commands
TACL maintains a chronological log of previously entered commands, which you can
display with the HISTORY command. Suppose that you have entered these TACL
commands (notice the command number in each of the prompts):
1> who
2> fileinfo
3> view myfile
4> history
Command 4, history, displays:
1> who
2> fileinfo
3> view myfile
4> history
5>
If you enter a question mark (?), TACL displays the last command:
5> ?
5> history
5>
If you enter a question mark followed by a number, TACL displays the command with
that number:
5> ?2
5> fileinfo
5>
If you enter a question mark followed by text, TACL displays the most recent command
that begins with that text:
5> ?v
5> view myfile
5>