DEBUG (COBOL only)

DEBUG activates the COBOL batch debugging features specified by the USE FOR DEBUGGING declarative.

The default value for non-CICS applications is NODEBUG.

The default value for CICS® applications is NODEBUG.

Read syntax diagramSkip visual syntax diagram
Syntax

   .-NODEBUG-.   
>>-+-DEBUG---+-------------------------------------------------><

NODEBUG
Suppresses the COBOL batch debugging features.
DEBUG
Activates the COBOL batch debugging features. You must have the WITH DEBUGGING MODE clause in the environment division of your application in order to compile the debugging sections.

Usage notes

Performance consideration

Because DEBUG gives worse runtime performance than NODEBUG, you should use it only during application development or debugging.

For more information

See the appropriate version of the COBOL programming guide in the COBOL library at Enterprise COBOL for z/OS library for more information about the USE FOR DEBUGGING declarative.