The @MODE statement is used to switch between the operating modes (compatibility mode and Unicode mode).
Operation | Operands | F mode, L mode |
@MODE | OPERATING-MODE = { UNICODE | COMPATIBLE } |
OPERATING-MODE= | |
The EDT operating mode is changed. | |
UNICODE | EDT changes from compatibility mode to Unicode mode. If EDT is already running in Unicode mode, the statement is ignored. |
COMPATIBLE | |
EDT changes from Unicode mode to compatibility mode. If EDT is already running in compatibility mode, the statement is ignored. |
It is only possible to change operating mode if all the EDT work files are empty and no files are open. Otherwise, the statement is rejected with the message EDT4983
.
Changing the operating mode amounts to terminating EDT in one mode and then restarting it in another mode. When this is done, all the settings are lost and all the variables are reinitialized. For further details, see section “Activating compatibility and Unicode mode”.
Alongside an explicit change of operating mode using the @MODE statement, an implicit change from compatibility mode to Unicode is also possible if all the work files are empty, no files are open and a @CODENAME statement specifying an ISO character set, a Unicode character set or 7-bit character set other than EDF03IRV
is issued. However, an implicit change from Unicode mode to compatibility mode never occurs.