The CALL-EDT statement calls up the editor EDT and opens work file 0.
LMS supports EDT versions as of V16.2A (see [10 (Related publications)]).
For the editing of Unicode members EDT V17.0 or higher is necessary (see [11 (Related publications)]).
Terminating EDT:
EDT can be terminated with RETURN or HALT, and the EDT data (files in virtual memory, variables, etc.) will be retained. Only the occurrence of a serious EDT error will cause this data to be lost and an LMS message to be issued.
CALL-EDT | ||||||||||||||||
|
EDT-MODE = *LMS-DEFAULT / *COMPATIBLE / *UNICODE
Specifies the mode that EDT is to be called in.
EDT-MODE = *COMPATIBLE
EDT is called in compatibility mode.
EDT-MODE = *UNICODE
EDT is called in Unicode mode.
EDITOR-COMMANDS = *NONE / <c-string 1..251> / *LOWER-CASE(...) No sequence of editor commands is specified.
EDITOR-COMMANDS = <c-string 1..251>
Sequence of editor commands which are to be executed after EDT is called. In the entry, the commands must be separated from one another by a semicolon (;). With the exception of EDIT and RETURN, it is possible to specify any commands which are permitted both in F mode and in L mode of EDT. The EDIT command is permitted only in the form EDIT ONLY. It should be noted that the HALT command in a sequence of EDT commands causes EDT to terminate and so also causes the EDT data to be released (files in virtual memory, variables, etc.).
Lowercase letters are converted to uppercase.
EDITOR-COMMANDS = *LOWER-CASE(...)
Lowercase letters are not converted to uppercase.
EDITOR-COMMANDS = <c-string 1..251 with-low>
Sequence of editor commands as described above, except that lowercase letters are not converted to uppercase.
Statement return code
(SC2) | Maincode | Meaning |
0 | CMD0001 | No error |
Notes
After CALL-EDT, files or members can be opened and read into EDT work areas with the EDT OPEN F= or OPEN L= statement. These objects also remain locked after a return is made to LMS via HALT or RETURN. The OPEN indicator is only reset when LMS is terminated. However, if the CLOSE command is issued before HALT, the member or file is written and closed. Another task can then access it without terminating LMS.
If an EDT-MODE is specified explicitly in the CALL-EDT statement, but EDT cannot start in the specified mode, the statement is aborted and the message LMS0297 is output.
If no EDT-MODE is specified explicitly in the CALL-EDT statement, EDT starts in the default EDT mode, but can switch modes by itself if necessary. The default EDT mode is COMPATIBLE at the beginning of the LMS run and can be changed by the MODIFY-LMS-DEFAULTS statement.