NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
E-1
E
EDIT Command
EDIT is an SQLCI command that invokes the EDIT text editor.
file
is a Guardian name that specifies the file to EDIT.
[!]
directs EDIT to create file if it does not already exist.
edit-cmd
is a text editor command. (See the EDIT User's Guide and Reference Manual.)
Note that you must use a form of the command that includes quotation marks if you
specify edit-cmd. If you do not, SQLCI interprets the first semicolon on the line as
the end of the SQLCI statement, not as input to the editor.
Examples—EDIT
The following example starts an EDIT session within an SQLCI session to edit the
file FINDEMP:
>> EDIT FINDEMP;
TEXT EDITOR - T9601D20 - (01JUN93)
CURRENT FILE IS $VOL1.PERSNL.FINDEMP
*
The following example passes commands to EDIT and starts an EDIT session
within an SQLCI session (EDIT output is not shown):
>> EDIT MYDATA";L/1994/;XVS";
Embedded SQL
Embedded SQL, or programmatic SQL, is the application programming interface for
SQL. It consists of a set of SQL statements and declarations you can include in
programs written in C, COBOL85, Pascal, or TAL.
The language in which you write an embedded SQL program is called the host language
or host programming language in NonStop SQL/MP documentation. A separate
[ [ file [!] ] ]
EDIT [ " [ file [!] ] [ ; edit-cmd ] ... " ] ;
[ [ file [!] ] " [ ; edit-cmd ] ... " ]