ibm-information-center/dist/eclipse/plugins/i5OS.ic.db2_5.4.0.1/rbafzmstsetdebug.htm

98 lines
5.3 KiB
HTML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-19" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow"/>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="keywords" content="SET CURRENT DEBUG MODE statement,
SET CURRENT DEBUG MODE, SQL statements" />
<title>SET CURRENT DEBUG MODE</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="setdebug"></a>
<h2 id="setdebug"><a href="rbafzmst02.htm#ToC_1283">SET CURRENT DEBUG MODE</a></h2><a id="idx3126" name="idx3126"></a><a id="idx3127" name="idx3127"></a>
<p>The SET CURRENT DEBUG MODE statement assigns a value to the CURRENT DEBUG
MODE special register.</p>
<a name="wq1738"></a>
<h3 id="wq1738"><a href="rbafzmst02.htm#ToC_1284">Invocation</a></h3>
<p>This statement can be embedded in an application program or issued interactively.
It is an executable statement that can be dynamically prepared.</p>
<a name="wq1739"></a>
<h3 id="wq1739"><a href="rbafzmst02.htm#ToC_1285">Authorization</a></h3>
<p>None.</p>
<a name="wq1740"></a>
<h3 id="wq1740"><a href="rbafzmst02.htm#ToC_1286">Syntax</a></h3>
<a href="rbafzmstsetdebug.htm#synsetdebug"><img src="c.gif" alt="Click to skip syntax diagram" /></a>
<pre class="cgraphic"><span><img src="c.gif" alt="Read syntax diagram" longdesc="rbafzmstsyn379.htm"
border="0" /></span><a href="#skipsyn-378"><img src="c.gif" alt="Skip visual syntax diagram"
border="0" /></a> .-=-.
>>-SET--CURRENT DEBUG MODE--+---+--+-DISALLOW-+---------------->&lt;
+-ALLOW----+
'-DISABLE--'
</pre>
<a name="skipsyn-378" id="skipsyn-378"></a>
<a name="synsetdebug"></a>
<h3 id="synsetdebug"><a href="rbafzmst02.htm#ToC_1287">Description</a></h3>
<p>The value of CURRENT DEBUG MODE is replaced by the specified keyword: </p>
<dl class="parml">
<dt class="bold">DISALLOW</dt>
<dd>Procedures will be created so they cannot be debugged by the Unified Debugger.
When the DEBUG MODE attribute of a procedure is DISALLOW, the procedure can
be subsequently altered to change the DEBUG MODE attribute.
</dd>
<dt class="bold">ALLOW</dt>
<dd>Procedures will be created so they can be debugged by the Unified Debugger.
When the DEBUG MODE attribute of a procedure is ALLOW, the procedure can be
subsequently altered to change the DEBUG MODE attribute.
</dd>
<dt class="bold">DISABLE</dt>
<dd>Procedures will be created so they cannot be debugged by the Unified Debugger.
When the DEBUG MODE attribute of a procedure is DISABLE, the procedure cannot
be subsequently altered to change the DEBUG MODE attribute.
</dd>
</dl>
<a name="wq1741"></a>
<h3 id="wq1741"><a href="rbafzmst02.htm#ToC_1288">Notes</a></h3>
<p><span class="bold">Transaction considerations:</span> The SET CURRENT DEBUG
MODE statement is not a commitable operation. ROLLBACK has no effect on the
current debug mode.</p>
<p><span class="bold">Initial current debug mode:</span> The initial
value of the current debug mode is DISALLOW.</p>
<p><span class="bold">Current debug mode scope:</span> The scope of the current
debug mode is the job.</p>
<a name="wq1742"></a>
<h3 id="wq1742"><a href="rbafzmst02.htm#ToC_1289">Example</a></h3>
<p><span class="italic">Example 1:</span> The following statement sets the CURRENT
DEBUG MODE to allow subsequent procedures created by the CREATE PROCEDURE
(SQL) statement to be debuggable.</p>
<pre class="xmp"> <span class="bold">SET CURRENT DEBUG MODE = ALLOW</span> </pre>
<p><span class="italic">Example 2:</span> 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.</p>
<pre class="xmp"> <span class="bold">SET CURRENT DEBUG MODE = DISABLE</span></pre>
<hr /><br />
[ <a href="#Top_Of_Page">Top of Page</a> | <a href="rbafzmstetconj.htm">Previous Page</a> | <a href="rbafzsetdegree.htm">Next Page</a> | <a href="rbafzmst02.htm#wq1">Contents</a> |
<a href="rbafzmstindex.htm#index">Index</a> ]
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>