SQL/MX Remote Conversational Interface (RMXCI) Guide for SQL/MX Release 3.2 (H06.25+, J06.14+)

Syntax
FC [text | [-]number]
text
is the beginning text of a command in the 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 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.
Considerations
You must enter the command in one line.
You cannot run this command in a script file. You can run this command only at a command
prompt.
As each line of the command appears, you can modify the line by entering these editing
commands (in uppercase or lowercase letters) in the line below the displayed command-line:
Deletes the character immediately above the letter D. Repeat to delete more
characters.
D
Inserts characters in front of the character immediately above the letter I.Icharacters
Replaces existing characters one-for-one with characters, beginning with
the character immediately above the letter R.
Rcharacters
Replaces existing characters one-for-one with characters, beginning with
the first character immediately above characters. characters must begin
with a non blank character.
characters
To specify more than one editing command on a line, separate the editing commands with a
double slash (//). The end of a line terminates an editing command or a set of editing
commands.
After you edit a line of the command, RMXCI displays the line and allows you to re edit. Press
Enter without specifying editing commands to stop editing the line. The command runs when
you press Enter after the last line.
To terminate a command without saving the changes, use the double slash (//), and then
press Enter.
Examples
The following example runs the most recently run command that begins with sh:
SQL>fc sh
SQL>show schema
....
Pressing Enter runs the show schema command and displays the current schema, PERSNL:
SQL>fc sh
SQL>show schema
....
SCHEMA PERSNL
FC command 87