SQL/MX Remote Conversational Interface (RMXCI) Guide for SQL/MX Release 3.1 (H06.23+, J06.12+)

--- 1 row(s) selected.
SQL>/
(EXPR)
--------------------
62
--- 1 row(s) selected.
ALIAS command
The alias command allows you to map a string to any RMXCI or SQL command. The syntax of
the RMXCI or SQL command is checked when you run the mapped string. This command replaces
only the first token of a command string which allows the rest of the tokens to be treated as
parameters.
Syntax
ALIAS value AS command SQL-terminator
value
is a case-insensitive string without spaces. Value cannot be an RMXCI command.
command
is a RMXCI command or SQL command.
SQL-terminator
is the default terminator (;) or a string value defined for the statement terminator by the “SET
SQLTERMINATOR command” (page 96). For more information, see “Setting and showing the
SQL terminator” (page 36).
Considerations
This command requires the SQL terminator.
You must enter the command in one line.
The alias command lasts only for the duration of the session.
An alias on an alias is not supported.
Examples
The following command creates an alias named .OS for the localhost (LH)command:
SQL>alias .OS AS LH;
This command runs the new alias with the ls option:
SQL>.OS ls;
rmxci-perl.pl
rmxci-python.py
rmxci.pl
rmxci.py
settings.pl
settings.py
The following command creates an alias named .GOTO for the goto command:
SQL>alias .GOTO AS GOTO;
SQL> .GOTO mylabel
58 RMXCI commands