The following example declares ERR to be an interrupt and associates with it the statement GO TO ABORT.
INTERRUPT ERR; GO TO ABORT
The following example declares BLOCK1 to be an interrupt. When BLOCK1 is invoked, two messages are displayed. Because a GO TO statement does not occur within the declaration, after the interrupt code is executed, the program continues from the point at which the interrupt occurred.
INTERRUPT BLOCK1;
BEGIN
DISPLAY("ERROR");
DISPLAY("INTERRUPT BLOCK1 OCCURRED");
END
