The @BLOCK statement activates or deactivates EDT's blocked input/output mode (BLOCK
mode).
When BLOCK
mode is active, it is possible, in L mode, to use a single entry at the terminal to create multiple lines or input multiple statements for sequential execution or enter a mixture of the two. The individual lines and/or statements must be separated using the [LZE] character.
Operation | Operands | F mode / L mode |
@BLOCK | [ {ON | OFF} ] |
ON OFF | Activates Deactivates |
When an EDT session starts, BLOCK
is activated by default.
In BLOCK
mode, the maximum number of lines that can be entered in a block is the number that can be displayed on a screen page.
If the entered block contains an illegal statement then this is output together with the current line number and the corresponding error message at the time of its execution. The remainder of the block is then executed.
If an entered block contains a @BLOCK OFF statement then the remaining statements or data input in the block are ignored.
In batch mode, the @BLOCK statement is ignored.
When @DO procedures are called, BLOCK
mode is set to OFF
. If the @DO procedure is exited again, BLOCK
mode is restored to the status it had before the @DO procedure was called.