SQL/MP Reference Manual
HP NonStop SQL/MP Reference Manual—523352-013
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
This 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
*
This example passes commands to EDIT and starts an EDIT session within an
SQLCI session (EDIT output is not shown):
>> EDIT MYDATA";L/1994/;XVS";
[ [ file [!] ] ]
EDIT [ " [ file [!] ] [ ; edit-cmd ] ... " ] ;
[ [ file [!] ] " [ ; edit-cmd ] ... " ]