option #21

Interrupt trapping

WSupported on Windows
USupported on Unix
VSupported on OpenVMS

 

System option #21 determines whether or not the interrupt character is trappable.

If you set option #21, the ONERROR statement cannot trap the interrupt character, which means that a user can press the interrupt character to interrupt your program.

If you don’t set this option, the ONERROR statement traps the interrupt character, which may make it difficult to abort your program.