Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Programming Guide

INTERRUPT

The INTERRUPT option causes the compiled program to respond to attention requests (interrupts).

Read syntax diagramSkip visual syntax diagram   .-NOINTERRUPT-.
>>-+-INTERRUPT---+---------------------------------------------><
 

ABBREVIATION: INT, NINT

This option determines the effect of attention interrupts when the compiled PL/I program runs under an interactive system. This option will have an effect only on programs running under TSO. If you have written a program that relies on raising the ATTENTION condition, you must compile it with the INTERRUPT option. This option allows attention interrupts to become an integral part of programming. This gives you considerable interactive control of the program.

If you specify the INTERRUPT option, an established ATTENTION ON-unit gets control when an attention interrupt occurs. When the execution of an ATTENTION ON-unit is complete, control returns to the point of interrupt unless directed elsewhere by means of a GOTO statement. If you do not establish an ATTENTION ON-unit, the attention interrupt is ignored.

If you specify NOINTERRUPT, an attention interrupt during a program run does not give control to any ATTENTION ON-units.

If you require the attention interrupt capability only for testing purposes, use the TEST option instead of the INTERRUPT option. For more information see TEST.

See Interrupts and attention processing for more information about using interrupts in your programs.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)