Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

@EDIT (format 2) - Set input from terminal

&pagelevel(3)&pagelevel

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]

PRINT

Specifying PRINT causes the line number and content of the current line to
be output on the screen before the prompt is output in interactive mode and
before the next statement or line of data is read in batch mode.

If PRINT is not specified, the statement deactivates this function again
without exiting L mode.

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 @+ or @- are issued. This may result in existing lines, i.e. the lines between the old and the new current line number, being skipped without this being noticed by the user.

If SEQUENTIAL is specified then the current line number is only formed as described above if there are no intervening lines. If this is not the case, the first intervening line becomes the current line.

If SEQUENTIAL is not specified, the statement deactivates this function again without exiting L mode.

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.