Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

@SPLIT - Display 2 work windows

&pagelevel(3)&pagelevel

In F mode, the @SPLIT statement can be used to activate or deactivate the display of a second work window on the screen. Each work window has a separate statement line (see also section “The work window”).

Operation

Operands

F mode

@SPLIT

{ n { ( 0..22) | $0..$22 } | OFF }

n

Specifies the number of lines for the lower work window including the
statement line. A value of 2 or more must be specified for n and this value
must not be more than two less than the maximum number of lines
permitted by the terminal for the screen format in question (see @VDT
statement).

0..22 | $0..$22 

Number of the work file that is to be displayed in the lower work window.

The upper work window contains the work file in which the statement was
issued. Users are permitted to define the same work file for both work
windows. This makes it possible, for example, to edit different line ranges in
the same work file at the same time.

OFF

The work window containing the statement line in which the statement was
issued is displayed in full. The specification of 0 (Null) instead of OFF is now
only supported for reasons of compatibility.

When an EDT session starts, the work window is not split in F mode.

The cursor is positioned in the upper statement line once the screen has been split. After each subsequent output, it is positioned in the statement line in which the last statement or statement sequence was entered. If a statement is entered in both statement lines, then the cursor is positioned in the upper statement line after the statements have been executed. If an error occurs while processing a statement then the cursor is positioned in the statement line in which the invalid statement was entered.

If, when the screen is split, @SPLIT OFF is entered in the upper statement line and a statement is entered in the lower statement line then @SPLIT OFF is rejected with an error message.

The @PAR SPLIT statement can be used instead of @SPLIT and has the same functionality. Furthermore, @PAR SPLIT can be used for a specific work file or globally for all the work files and is also permitted in L mode and therefore in EDT procedures.

Example

@SPLIT 10(2) requests a second work window which contains 10 lines including the statement line. Work file 2 is to be displayed in this work window.