In the interactive mode's L mode, format 2 of the @EDIT statement switches the input stream to terminal input. WRTRD
is used for reading and the current line number is output as the prompt.
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 | [PRINT] [SEQUENTIAL] |
Specifying If | |
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 |
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.