The @PAR EDIT-LONG statement or the @EDIT LONG statement which is only available in F mode can be used to modify the screen output. In the case of records which exceed the number of screen columns, it is possible to specify that
records are fully displayed in the data window – provided that their length permits this (@PAR EDIT-LONG=ON or @EDIT LONG ON)
only a section consisting of 72, 80, 124 or 132 characters in a record (depending on the @PAR INDEX setting) is displayed in the data window (@PAR EDIT-LONG=OFF or @EDIT LONG OFF).
EDIT-LONG
mode functions without any line number display. A record is written continuously over multiple screen lines.
When new records are input at the end of the work file or in an insert area made available in one of the statement codes I
or 1..9
, a line which is not terminated either with [LZE] or with NULL
characters is combined with the following line to form a record. In this way, it is possible, depending on the screen format, to enter records with a length of up to 3432 characters directly in EDIT-LONG
mode. This only applies to new records. If an existing record is continued at the end of a work file or is continued into the new line range immediately in front of an insert area then the new records are not combined with the existing record. Existing records can only be extended with the statement code E
(see below).
If an input line is shortened by converting a substitute representation (e.g. %U20AC
) into the corresponding characters it is not combined with the following line even if the original input line does not contain any terminating [LZE] or NULL
characters.
In EDIT-LONG
mode, the hardware tabulator (see @TABS statement) only applies to the first screen line in a record. In the case of existing records, it is not possible to use the hardware tabulator to move to a position in the following screen lines. In the case of new records (see previous section), the tabulator positions in all the lines are identical to those in the first screen line.
If [F2] is used to set the entire data window to overwritable, any final record that is completely displayed in the data window remains non-overwritable. If such a record is marked with the statement code X
then (if possible) the window is positioned in such a way that the record is fully displayed in the data window. If this is not possible then the record continues to be non-overwritable. Records that are so long that they cannot usually be displayed in full cannot be edited in EDIT-LONG
mode. This type of record can only be edited after @PAR EDIT-LONG=OFF. It may then be necessary to scroll horizontally (>, <
) in order to move the section to be edited into the displayed area.
The statement code column is the first column on the screen. In the case of multi-line records, the statement code must be entered in the first line. If a record is to be extended with the statement code E
then an entire line of NULL
characters is output in EDIT-LONG
mode. If necessary, the window is repositioned to make this possible. The statement codes S
and H
are not permitted in EDIT-LONG
mode.
Unlike the display with @PAR EDIT-FULL=ON, in EDIT-LONG
mode it is only ever possible to overwrite either the statement code column or the associated record in the data window.
In EDIT-LONG
mode, neither the column counter set with @PAR SCALE=ON nor an information line requested with @PAR INFORMATION=ON are displayed. The column counter and information lines are not displayed until EDIT-LONG
mode is quitted.
If EDIT-LONG
mode is quitted with @PAR EDIT-LONG=OFF or @EDIT LONG OFF then the line number display remains active.
EDIT-LONG
mode is also deactivated by @PAR INDEX=ON, @PAR INDEX=OFF and @PAR HEX=ON.
Note
The statements for horizontal scrolling (>, <
) and the @PAR EDIT-FULL=ON statement are accepted and processed. However, the effects are not visible until EDIT-LONG
mode is exited or the line number display is restored.