|
Utilities |
ODXSQL |
Special Characters |
Special CharactersCertain "special" characters entered at the ODXSQL command prompt have special meaning or cause specific behavior, as follows: \ (back slash) - Continuation character - Used for formatting statements for readability. ; (semi-colon) - Comment character - Comment a line. . (period) - Re-execute the last command. n (history line number) - Re-execute a specific command from the command history. ! (exclamation point) - Execute an operating system command.
Continuation CharacterFor readability, the \ (back slash) continuation character can be used to continue a single statement on multiple lines. It can be used interactively or in use files. Select prospects.acct, \
Comment CharacterThe ; (semi-colon) is a comment character that informs OdxSql that the rest of the current line will contain a comment, which is ignored. Directives can also be placed on the same line as a comment character, to control the state of OdxSQL. The ; character is generally used in USE files but is also supported at the OdxSql command prompt. ; The text on this line is ignored. It is a comment.
Execute a Previous CommandTo re-execute the last command executed in OdxSql, enter a . (period) at the OdxSql command prompt and hit enter. The help command is executed, displaying the help text about the Execute Previous Command special character: >help . . > Next the help command is re-executed using the Execute Previous Command special character: >. . >
Another way to execute a previously executed command is to display a list of previously executed commands from the history file: >history Then enter the line number of the command you want to re-execute: >2 .
Execute System CommandsOdxSql supports the execution of operating system commands from within the running OdxSql program. Omnidex does not provide any security for the execution of operating system commands, other than the standard operating system security. Syntax![os_command] ! (exclamation point) os_command If the exclamation point is executed by itself, os_command omitted, ODXSQL will switch to the operating system prompt. You can then execute a series of operating system commands. Enter 'exit' at the operating system prompt to return to ODXSQL.
The operating system prompt is governed by the SHELL environment variable. This defaults to DOS on a Windows machine, /bin/sh on Unix, ci.pub.sys on MPE/XL, and lib$spawn on VMS. The ls and pwd commands executed in OdxSQL: > !ls > !pwd The ls and pwd commands executed from the operating system prompt reached through the ! command in OdxSQL: > ! /disc/orders$ ls /disc/orders$ pwd /disc/orders$ exit
|
|
DBINSTAL | DSEDIT | OACOMP | OAHELPER | ODXNET | ODXSQL | Utilities |
NSADMIN |
OADECOMP |
ODXAIM |
ODXMAKE |
ODXQUERY |
REGMAINT |
REGTEST |
SNOWGEN |
SYSINFO |
VERSIONS |
VIEWGEN |