The @MODE statement is used to switch between the operating modes (compatibility mode and Unicode mode, see section “Introduction to the EDT operating modes”).
Operation | Operands | F mode, L mode |
@MODE | OPERATING-MODE={UNICODE | COMPATIBLE} |
OPERATING-MODE= | |
The EDT operating mode is switched. | |
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 details, see section “Activating compatibility and Unicode mode”.