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

MXCI Commands
HP NonStop SQL/MX Reference Manual540440-003
4-31
HISTORY Command
HISTORY Command
The HISTORY command displays recently executed MXCI commands, identifying
each command by a number you can use to reexecute or edit the command with FC.
See FC Command on page 4-29.
You can use HISTORY only within an MXCI session.
number
is the number of commands to display. The default number is 10.
You can use the FC command to edit and reexecute a command in the history buffer,
or use the exclamation point command (!) to reexecute a command without modifying
it.
Examples of HISTORY
Display the three most recent MXCI commands and use FC to redisplay one:
>>HISTORY 3;
1> SHOW SESSION;
2> SELECT * FROM PERSNL.DEPT;
3> HISTORY 3;
>>FC 2;
>>SELECT * FROM PERSNL.DEPT;
..
Now you can use the edit capabilities of FC to modify and execute a different
SELECT statement.
HISTORY [number]