SQL/MX 2.x Reference Manual (H06.04+)

MXCI Commands
HP NonStop SQL/MX Reference Manual540440-003
4-29
FC Command
FC Command
Examples of FC
The FC command allows you to edit and reissue an MXCI command in the history
buffer. You can display the commands in the history buffer by using the HISTORY
command. For more information about the history buffer, see HISTORY Command on
page 4-31.
You can use FC only within an MXCI session.
text
is the beginning text of a command in the MXCI history buffer. Case is not
significant in matching the text to a command.
[-]number
is either a positive integer that is the ordinal number of a command in the MXCI
history buffer or a negative integer that indicates the position of a command
relative to the most recent command.
Without text or number FC retrieves the most recent command.
A semicolon ( ;) is not required after the FC command.
As each line is displayed, you can modify it by entering these commands (in uppercase
or lowercase letters) on the line below the displayed command:
To specify more than one editing command on a line, separate the editing commands
with a double slash (//).
The end of a line terminates a command. After you edit the last line of the command,
MXCI displays the command again and allows you to edit it again. To stop editing and
execute the edited command, press Return without entering any editing commands.
To terminate a command without saving changes to the command, use the double
slash (//), and then press Return.
FC [text | [-]number]
D Deletes the character immediately above the letter D. Repeat to
delete more characters.
Icharacters Inserts characters in front of the character immediately above the
letter I.
Rcharacters Replaces existing characters one-for-one with characters,
beginning with the character immediately above the letter R.
characters Replaces existing characters one-for-one with characters,
beginning with the first character immediately above characters.
characters must begin with a nonblank character.