REDO Commands [ HP SYSTEM DICTIONARY XL COBOL DEFINITION EXTRACTOR Reference Manual ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL COBOL DEFINITION EXTRACTOR Reference Manual
REDO Commands
The REDO command allows you to correct errors or to make changes to the
last command you issued. When you issue the REDO command, you enter an
editing mode and the first line of the command is displayed for
modification.
Syntax
REDO [.]
Subcommands
To modify the command, position the cursor using the space bar, under the
character to be modified and enter one of the subcommands listed below.
SUBCOMMAND DESCRIPTION
--------------------------------------------------------------------------------------
A Appends one or more characters to the end of the current line, regardless
of the position of the command.
B Breaks the line into two lines, moving the character that is above the
cursor and all following characters to the next line. The second line
becomes the current edit line.
D Deletes the character above the D. If you repeat D , each character above
each D is deleted. You may also use a D below the first and last
character to be deleted with spaces in between.
E Exits the REDO editing mode without executing the edited command. The
command that you were editing when you entered E is still considered to
be the last one.
H Lists all available editing sub-commands in REDO mode. Your current
editing line is then redisplayed.
I Inserts one or more characters immediately preceding the character that
is above the cursor. You can combine a DELETE and INSERT edit by using
D's followed by an I and the characters to be inserted.
L Lists the complete command as it is currently edited and then redisplays
the line you are currently editing.
R Replaces the characters above the cursor with the new characters you
enter. The first character to be replaced is the one above the R.
X Executes the current command as it has been edited.
+n Places the cursor on the next line of the command you are editing. You
can enter + followed by a number n, for the number of lines you want to
skip forward. If you do not enter a number, the default is to move
forward one line.
-n Places the cursor on the previous line of the command you are editing.
You can enter - followed by a number n, for the number of lines you want
to skip backward. If you do not enter a number, the default is to is to
move backward one line.
[[RETURN]] Places the cursor on the next line of the command you are editing. If
you are on the last line, the command executes as it has been edited.
Description
To modify the REDO command, use the subcommands just described. If you
enter any character other than a valid subcommand, that character and the
following characters are interpreted as replacement characters and they
replace the characters above them in the command. For example, if you
type TYPE below a set of characters, the word TYPE replaces the four
characters in the command line above.
Once you issue the REDO command, you are placed in edit mode and the
first line of the command is displayed for modification. If the line you
want to edit is the second line of the command, rather than the first,
the + subcommand can move the cursor forward to the desired line. The -
subcommand can move the cursor backward to a previous line. The + or -
subcommands can also be followed by a number, allowing the cursor to move
forward or backward more than one line at a time.
Example
The following example corrects the typographical error for the word
"scope" (which is misspelled "scopee" ) and then executes the corrected
command.
>DEFINE DICTIONARY = SYSDIC;
>> SCOPEE = MANAGER;
>> PASSWORD = MGR*;
>> OPEN-MODE = SHARED-UPDATE
SCOPEE = MANAGER;
^
Unknown DEFINE parameter (SDERR 4534)
Text from the error to the end of command ignored (SDWARN 4521)
>REDO
DEFINE DICTIONARY = SYSDIC;
SCOPEE = MANAGER;
D
SCOPE = MANAGER;
X
>
MPE/iX 5.0 Documentation