Safeguard Reference Manual (G06.29+, H06.08+, J06.03+)

Table Of Contents
SAFECOM Session-Control Commands
Safeguard Reference Manual 520618-030
4 - 27
! Command
-linenum
is a negative integer that specifies the number of the command line to be retrieved
relative to the current line number.
string
is a text string. The ? command finds and displays the most recent command in the
history buffer that begins with the specified text string.
"string"
is a text string enclosed in quotation marks. The ? command finds and displays the
most recent command in the history buffer that contains the specified text string.
The command need not begin with the specified string.
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.
! [ linenum ]
[ -linenum ]
[ string ]
[ "string" ]