USE FOR DEBUGGING

The USE FOR DEBUGGING declarative identifies the items in the source program that are to be monitored by the associated debugging procedure. It establishes a procedure to run when certain errors occur, or when certain items or files change.

The USE FOR DEBUGGING declarative is syntax checked and treated as documentation.

Read syntax diagramSkip visual syntax diagram
USE FOR DEBUGGING Declarative - Format

       (1)                               
>>-USE------+-----+--DEBUGGING--+----+-------------------------->
            '-FOR-'             '-ON-'   

   .----------------------------------------------.   
   V                                              |   
>----+-+------------------------+--identifier-1-+-+------------><
     | '-ALL--+---------------+-'               |     
     |        '-REFERENCES OF-'                 |     
     +-file-name-1------------------------------+     
     +-procedure-name-1-------------------------+     
     '-ALL PROCEDURES---------------------------'     

Notes:
  1. Syntax-checked only.

Identifier-1 cannot be reference modified.

This statement is compiled only when you are in debugging mode.

The compiler treats all statements that follow this one as comments until the next valid USE AFTER EXCEPTION/ERROR statement or END DECLARATIVES delimiter is reached.