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 3) - Set input from SYSDTA

&pagelevel(3)&pagelevel

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]

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 then only the input stream is switched and the
SEQUENTIAL operand is evaluated if it has been specified.

If the function is activated with @EDIT ONLY PRINT then the only way to
deactivate it without exiting L mode is to issue the @EDIT (format 2)
statement.

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 number becomes the current line number.

If SEQUENTIAL is not specified then only the input stream is switched and the PRINT operand is evaluated if it has been specified.

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.