The @PAR SPLIT statement or the @SPLIT statement which is only available in F mode can be used to activate or deactivate the display of a second work window on the screen. The following applies when two work windows are displayed:
Each work window has its own statement line.
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. 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, @PAR SPLIT=OFF is entered in the upper statement line and a statement is entered in the lower statement line then @PAR SPLIT=OFF is rejected with an error message.
Display in work windows with different character sets
Splitting the work window makes it possible to display two work windows which contain data in different character sets. However, the terminal is only able to display one character set correctly. In addition, changing the character set at the terminal always results in the screen being deleted and then reconstructed (and should therefore be done as infrequently as possible).
EDT therefore attempts to operate without switching the terminal character set if at all possible. If the terminal supports Unicode character sets and automatic character set selection is active, UTFE
is used for communication with the terminal and this character set is not changed when the window is split (for details, see the introduction to section “The work window”). In this Unicode character set, the display in the two work windows is correct or, at least, legible.
If a 7-bit or 8-bit character set is used for communication with the terminal, perhaps because the terminal does not support Unicode, then, by default, the upper work window determines the character set used for communication with the terminal unless the user has explicitly modified this setting using the @CODENAME statement.
In a data window containing an assigned work file which is not present in the terminal's character set, the characters are displayed using their equivalents in the terminal's character set or by smudge characters (if the character is invalid in this character set).
The character set used for communications with the terminal can be modified using the @CODENAME statement (format 2).
This statement only modifies the display, not the coding of the data in the work file (see the description of the @CODENAME statement).
For the procedure used to interpret the input, see the introduction to the section “The work window”) as well as section “Character sets”.