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 |
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 |
OFF | The work window containing the statement line in which the statement was |
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.