ON command (PL/I)

The ON command establishes the actions to be executed when the specified PL/I condition is raised. This command is equivalent to AT OCCURRENCE.

Read syntax diagramSkip visual syntax diagram
>>-ON--+-CONDITION--(--condition_name--)---------+-------------->
       +-+-ENDFILE-------+--(--file_reference--)-+   
       | +-ENDPAGE-------+                       |   
       | +-KEY-----------+                       |   
       | +-NAME----------+                       |   
       | +-PENDING-------+                       |   
       | +-RECORD--------+                       |   
       | +-TRANSMIT------+                       |   
       | '-UNDEFINEDFILE-'                       |   
       +-AREA------------------------------------+   
       +-ATTENTION-------------------------------+   
       +-CONVERSION------------------------------+   
       +-ERROR-----------------------------------+   
       +-FINISH----------------------------------+   
       +-FIXEDOVERFLOW---------------------------+   
       +-OVERFLOW--------------------------------+   
       +-SIZE------------------------------------+   
       +-STRINGRANGE-----------------------------+   
       +-STRINGSIZE------------------------------+   
       +-SUBSCRIPTRANGE--------------------------+   
       +-UNDERFLOW-------------------------------+   
       '-ZERODIVIDE------------------------------'   

>--command--;--------------------------------------------------><

condition_name
A valid PL/I CONDITION condition name.
file_reference
A valid PL/I file constant, file variable (can be qualified), or an asterisk (*). If you use an asterisk (*), the breakpoint is activated for all file references associated with the condition used in the ON command.
command
A valid Debug Tool command.

Usage notes

Examples

Refer to the following topics for more information related to the material discussed in this topic.