Safeguard Reference Manual (G06.24+, H06.03+ )

SAFECOM Session-Control Commands
Safeguard Reference Manual520618-013
4-27
! Command
Examples
1. The following ? command retrieves command line number 6:
=? 6
=ADD DISKFILE SEC03, LIKE SEC01
2. The following ? command retrieves the last command in the history buffer:
=?
=INFO VOLUME $DATA
3. The following ? command retrieves the last command in the history buffer that
contains the character string RPT06:
=? "RPT06"
=ADD DISKFILE $DATA01.ACCT.RPT06, LIKE RPT01
4. The following ? command retrieves the last command in the history that begins
with the text string ALT:
=? ALT
=ALTER DISKFILE SEC12, ACCESS 12,34 *
! Command
The ! command lets you retrieve and execute a command you previously entered
during the current session. You can request the command by line number, relative line
number, or text string.
!
entered with no line number or text string, specifies that the last command line in
the command history buffer is to be displayed and executed.
linenum
is a positive integer that specifies the number of the command line in the history
buffer that you want to retrieve and execute.
-linenum
is a negative integer that specifies the number of the command line to be retrieved
and executed relative to the current line number.
string
is a text string. The ! command displays and executes the most recent command in
the history buffer that begins with the specified text string.
! [ linenum ]
[ -linenum ]
[ string ]
[ "string" ]