EDIT CLPPlus command

The EDIT CLPPlus command starts an external editor to make large changes to the contents of a file or the SQL buffer.

CLPPlus reads the EDITOR and PATH system environment variables to establish which external editor is used when the EDIT command is started. Any editor of your choice can be specified in the EDITOR system environment variable provided it is installed on the system. The location of the binary file for the external editor specified in the EDITOR system environment variable location must be included in your PATH system environment variable. If these variables are not set or not set properly, the default editor used on Windows operating systems is Notepad. On UNIX and Linux® operating systems, it is vi.

Invocation

You must run this command from the CLPPlus interface.

Authorization

None

Required connection

None

Command syntax

Read syntax diagramSkip visual syntax diagramEDITEDpathfilename

Command parameters

path
Specifies the path, either absolute or relative, to the file specified by the filename variable. If no path is specified, the current directory is used.
filename
Specifies the name of the file to open. If you do not specify a file extension, the .sql extension is used. If you do not specify the filename parameter, the contents of the SQL buffer are brought into the editor.

The EDIT command is supported in the CLPPlus window mode. The command is not supported in the CLPPlus non-window mode.