LISTREDO [ MPE/iX Commands Reference Manual Volume I ] MPE/iX 5.0 Documentation
MPE/iX Commands Reference Manual Volume I
LISTREDO
Displays the contents of the command line history stack. You may specify
the format in which the listing appears, and whether it appears on
$STDLIST or in a file. (Native Mode)
Syntax
[ {ABS}]
LISTREDO [START=m][;END=n][;OUT=outfile][;{REL}]
[ {UNN}]
NOTE This command follows the optional MPE/iX command line syntax.
Refer to "Optional Format for MPE/iX Commands" at the beginning of
this chapter.
Parameters
START or END Specifies the range of commands to be displayed.
Table 2-18 illustrates the effect of various START
or END definitions.
Table 2-18. History Stack Ranges
-----------------------------------------------------------------------------------------------
| | | |
| Start | End | Effect |
| | | |
- -
| | | |
| (omitted) | (omitted) | Lists all commands in the redo stack. |
| | | |
- -
| | | |
| m | n | Lists commands m through n. |
| | | |
- -
| | | |
| m | (omitted) | Displays commands m through the last command in the |
| | | stack. |
| | | |
- -
| | | |
| (omitted) | n | Displays the stack from the first command through |
| | | command n. |
| | | |
- - - -
-----------------------------------------------------------------------------------------------
If m and n are negative values, they refer to relative command numbers
(relative to the most recent command, which is -1). If m and n are
positive, they refer to absolute command numbers (the order in which they
were entered). To display a single line, m must equal n.
REL Displays the commands in their relative sequence
(from -m to -1), where -1 denotes the most recent
command in the stack.
ABS Displays the commands in their absolute order (the
order in which they were entered). ABS is the
default.
UNN Suppresses numbering of the commands during
display.
outfile Sends the listing to a disk file named outfile
instead of to the default, $STDLIST. New disk files
are created TEMP. File equations are ignored,
unless outfile is preceded by an asterisk (*). You
must use a file equation to overwrite a permanent
file.
Operation Notes
The LISTREDO command displays the contents of the REDO command line
stack. By default, the display order is from the earliest command to the
most recent command. Before any command line is displayed, anything
resembling a lockword is blanked out. However, any lockwords remain
active and available for editing through the DO and REDO commands.
Use
This command is available in a session, job, or in BREAK. It is not
available from a program. Pressing Break aborts the execution of this
command.
Examples
If three commands are written to the REDO stack and the third command is
LISTREDO, the display appears as:
1) COMMANDONE
2) COMMANDTWO
3) LISTREDO
If the third command were LISTREDO ;REL, the display appears as:
-3) COMMANDONE
-2) COMMANDTWO
-1) LISTREDO ;REL
To create a permanent disk file called CMDFILE containing the output from
LISTREDO, enter:
BUILD CMDFILE;REC=-80,,,ASCII;DISC=9
FILE LIST=CMDFILE,OLD
LISTREDO -10,-2;OUT=*LIST;UNN
CMDFILE contains a listing of nine command lines, but without the command
number; -10 is 9 lines distant from the most recent command; -2 is one
line distant from the most recent command. The most recent command is
not listed.
Related Information
Commands DO, REDO
Manuals Using the 900 Series HP 3000: Advanced Skills (31126A Opt.
002)
MPE/iX 5.0 Documentation