The SET CURRENT DEBUG MODE statement assigns a value to the CURRENT DEBUG MODE special register.
This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared.
None.
.-=-. >>-SET--CURRENT DEBUG MODE--+---+--+-DISALLOW-+---------------->< +-ALLOW----+ '-DISABLE--'
The value of CURRENT DEBUG MODE is replaced by the specified keyword:
Transaction considerations: The SET CURRENT DEBUG MODE statement is not a commitable operation. ROLLBACK has no effect on the current debug mode.
Initial current debug mode: The initial value of the current debug mode is DISALLOW.
Current debug mode scope: The scope of the current debug mode is the job.
Example 1: The following statement sets the CURRENT DEBUG MODE to allow subsequent procedures created by the CREATE PROCEDURE (SQL) statement to be debuggable.
SET CURRENT DEBUG MODE = ALLOW
Example 2: The following statement sets the CURRENT DEBUG MODE to disallow subsequent procedures created by the CREATE PROCEDURE (SQL) statement to be debuggable and to prevent those procedures from being altered to make them debuggable.
SET CURRENT DEBUG MODE = DISABLE