COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
22 Creating and Compiling HP COBOL Source Programs
NOTE: This section applies primarily to the Guardian environment. If you are compiling HP COBOL
programs in the OSS environment, see Chapter 19: Using HP COBOL in the OSS Environment
(page 711).
If you want to include SQL/MP or SQL/MX commands in your HP COBOL program, see the
SQL/MP Programming Manual for COBOL or the SQL/MX Programming Manual for C and
COBOL.
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>
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>
Reexecuting Previous Commands
If you enter an exclamation mark (!), TACL displays and executes the last command:
5> !
5> history
1> who
2> fileinfo
3> view myfile
4> history
5> history
6>
Using the TACL Command Log 745










