DEBUG (COBOL only)

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

Non-CICS default
DEBUG=((OFF),OVR)
CICS® default
DEBUG=((OFF),OVR)

1  DEBUG = ( (
1! OFF
1 ON
2  ) ,
1 NONOVR
1! OVR
3  )
OFF
Suppresses the COBOL batch debugging features. OFF is the default.
ON
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.

OVR
Specifies that the option can be overridden. OVR is the default.
NONOVR
Specifies that the option cannot be overridden.

Performance considerations

Because DEBUG(ON) gives worse runtime performance than DEBUG(OFF), use it only during application development or debugging.

For more information

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