NetBatch Manual
Commands
NetBatch Manual—522460-004
6-98
HISTORY Command
HISTORY Command
Use the HISTORY command to display a specified number of the most recently
executed command lines in BATCHCOM’s history buffer.
file-name
specifies a command output file. The file can be a device, a process, or a disk file.
For a disk file, BATCHCOM appends output if the file exists, but creates an EDIT
file if the file does not exist. If you specify / OUT / (that is, omit file-name),
BATCHCOM suppresses output.
num
is an integer greater than zero specifying the number of command lines to display.
The default is 10 lines.
Considerations
•
The HISTORY command is available to all users.
•
The size of the history buffer is 2048 bytes. The number of command lines the
buffer can store depends on how many characters are in the commands. As a
guide, the buffer could store approximately eighty 25-character commands or forty
50-character commands.
•
BATCHCOM stores all commands in its history buffer except CHANGEUSER,
COMMENT, and the HISTORY command itself.
•
To manipulate command lines in the history buffer, use the FC, exclamation point
(!), and question mark (?) commands:
°
Use the FC command to retrieve, edit, and reexecute a command line from the
buffer. For more information, see FC Command
on page 6-92.
°
Use the ! command to reexecute immediately a command line from the buffer.
For more information, see ! Command on page 6-198.
°
Use the ? command to display a command line from the buffer. For more
information, see ? Command on page 6-200.
Each command line you reexecute with the FC, !, or ? command becomes a new line
in the history buffer.
Examples
•
This HISTORY command in this example displays the two latest command lines:
13} HISTORY 2
11} SUBMIT JOB TODAY, IN $A.DATA.TODAY, OUT $S, WAIT 4:00
HIS[TORY] [ / OU[T] [ file-name ] / ] [ num ]