In the interactive mode's L mode, format 3 of the @EDIT statement switches the input stream to input from SYSDTA
. Reading is performed with RDATA
. The type of prompt displayed and the method used depend on the operating system settings (by default, a *
is output).
If the statement is entered in F mode, operation first switches to L mode. In batch mode, this only affects logging (see note below).
Operation | Operands | F mode, L mode |
@EDIT | ONLY [PRINT] [SEQUENTIAL] |
Specifying If If the function is activated with @EDIT ONLY PRINT then the only way to | |
SEQUENTIAL | The operand affects the incrementation of the current line number. Normally, in L mode the current line number is increased or decreased by the increment when a data line is entered in or when the statements If If If the function is activated with @EDIT ONLY SEQUENTIAL then the only way to deactivate it without exiting L mode is to issue the @EDIT (format 2) statement. |
If the input is redirected to SYSDTA
with @EDIT format 3 then statements and data are interpreted in the character set that is currently defined for SYSDTA
. In interactive mode, this is usually the same as the character set declared for the terminal using /MODIFY-TERMINAL-OPTIONS
unless SYSDTA
was previously assigned to a file. If the statements and data refer to one of the EDT work files, it may be necessary to convert the input into the character set of the work file in question. For details, see section “Character sets”.
Note
In batch mode, EDT usually reads from SYSDTA
. However, the type of logging that is performed (see @LOG statement) differs depending on whether @EDIT format 2 or @EDIT format 3 is specified. If @EDIT format 2 is specified then every logged entry starts with the current line number whereas this is omitted in @EDIT format 3. The latter behavior corresponds to the setting when EDT is started in batch mode.
In interactive mode, if an EOF
is identified at SYSDTA
, EDT automatically switches to terminal input.