ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/chgdbg.htm

226 lines
9.6 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Change Debug (CHGDBG)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CHGDBG.Top_Of_Page"></a>
<h2>Change Debug (CHGDBG)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CHGDBG.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CHGDBG.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CHGDBG.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CHGDBG"></a>
<p>The Change Debug (CHGDBG) command changes the attributes of the debugging session currently in effect for a job. All of the attributes can be changed, except which programs to debug. Use the Add Program (ADDPGM) command or the Remove Program (RMVPGM) commands to add or remove a program from debug mode.
</p>
<p><b>Restrictions:</b>
</p>
<ul>
<li>This command is valid only in debug mode. To start debug mode, see the STRDBG (Start Debug) command.
</li>
<li>If the current job is servicing another job, and that job is ending, this command is not allowed.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CHGDBG.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top"><a href="#CHGDBG.DFTPGM"><b>DFTPGM</b></a></td>
<td valign="top">Default program</td>
<td valign="top"><i>Name</i>, <b><u>*SAME</u></b>, *NONE</td>
<td valign="top">Optional, Positional 1</td>
</tr>
<tr>
<td valign="top"><a href="#CHGDBG.MAXTRC"><b>MAXTRC</b></a></td>
<td valign="top">Maximum trace statements</td>
<td valign="top"><i>Integer</i>, <b><u>*SAME</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGDBG.TRCFULL"><b>TRCFULL</b></a></td>
<td valign="top">Trace full</td>
<td valign="top"><b><u>*SAME</u></b>, *STOPTRC, *WRAP</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGDBG.UPDPROD"><b>UPDPROD</b></a></td>
<td valign="top">Update production files</td>
<td valign="top"><b><u>*SAME</u></b>, *NO, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CHGDBG.OPMSRC"><b>OPMSRC</b></a></td>
<td valign="top">OPM source level debug</td>
<td valign="top"><b><u>*SAME</u></b>, *NO, *YES</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CHGDBG.DFTPGM"></a>
<h3>Default program (DFTPGM)</h3>
<p>Specifies the original program model (OPM) program to use as the default program during debug mode. The program specified here is used as the default program for any of the other debug commands for which *DFTPGM was supplied for the <b>Program (PGM)</b> parameter. (That is, if a default program was previously specified, this parameter can change it.)
</p>
<p>This parameter is applicable only in the OPM environment.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The same program currently specified as the default program, if any, is used.
</dd>
<dt><b>*NONE</b></dt>
<dd>No program is specified as the default program; if a program was specified as a default program, it is no longer the default program. If the job has no default program, *DFTPGM cannot be specified for the <b>Program (PGM)</b> parameter of any other debug commands.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the program to use as the default program during debug mode. The same name must have been specified for the PGM parameter of the Start Debug (STRDBG) or Add Program (ADDPGM) command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGDBG.MAXTRC"></a>
<h3>Maximum trace statements (MAXTRC)</h3>
<p>Specifies the maximum number of trace statements that the system puts into the job's trace file before either stopping tracing or wrapping around (overlaying) on the trace file. When the trace file contains the maximum specified, the system performs the actions indicated by the value supplied for the <b>Trace full (TRCFULL)</b> parameter.
</p>
<p>
<b>Note: </b>Instruction stepping can be performed on a program being debugged in an interactive environment by setting the maximum number of trace statements to <b>1</b> and the value for the <b>Trace full (TRCFULL)</b> parameter to *STOPTRC.
</p>
<p>This parameter is applicable only in the OPM environment.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The maximum for the number of trace statements in the file is not changed.
</dd>
<dt><b><i>integer</i></b></dt>
<dd>Specify the maximum number of trace statements that can be in the trace file.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGDBG.TRCFULL"></a>
<h3>Trace full (TRCFULL)</h3>
<p>Specifies what happens when the job's trace file is full, that is when it contains the maximum number of trace statements specified by the <b>Maximum trace statements (MAXTRC)</b> parameter.
</p>
<p>This parameter is applicable only in the OPM environment.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The action taken when the trace file is full is not changed.
</dd>
<dt><b>*STOPTRC</b></dt>
<dd>In a batch environment, tracing stops but the program continues processing. In an interactive environment, control is given to the user when a breakpoint occurs. If the user continues processing, a breakpoint occurs before processing each subsequent statement within the range of statements being traced, and the trace file is extended to contain the new entry.
</dd>
<dt><b>*WRAP</b></dt>
<dd>The trace file is overlaid with new trace statements as they occur, wrapping from the beginning of the file. The program continues processing until completed with no message to indicate that wrapping has occurred. The trace file never has more than the maximum specified statements, and they are the most recently recorded statements.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGDBG.UPDPROD"></a>
<h3>Update production files (UPDPROD)</h3>
<p>Specifies whether or not database files in a production library can be opened for changes (that is, for adding, deleting, or changing records in the file) while the job is in debug mode. If not, the files must be copied into a test library before trying to run a program that uses the files.
</p>
<p>This parameter is applicable in both the OPM and ILE environments.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The previously specified value for this parameter is not changed.
</dd>
<dt><b>*NO</b></dt>
<dd>Database files in production libraries cannot be changed during debug mode. Database files can be opened for reading only.
</dd>
<dt><b>*YES</b></dt>
<dd>Database files in production libraries can be changed while the job is in debug mode.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CHGDBG.OPMSRC"></a>
<h3>OPM source level debug (OPMSRC)</h3>
<p>Specifies whether OPM programs are debugged using the system source debug support (same as ILE source debug).
</p>
<p>This parameter is valid for OPM CL, OPM RPG and OPM COBOL programs that were created with OPTION(*SRCDBG) with CRTCLPGM, CRTRPGPGM and CRTCBLPGM commands. Additionally, this parameter is valid for OPM CL, OPM RPG and OPM COBOL programs that were created with OPTION(*LSTDBG) with the CRTCLPGM, CRTRPGPGM, CRTCBLPGM CRTSQLRPG, CRTSQLCBL, and CRTRPTPGM commands. If the OPM program is not CL, RPG or COBOL and was not compiled with a valid debug option, then this parameter is ignored.
</p>
<p>OPM programs already added to debug prior to the CHGDBG command will continue to be active under the debug environment (ILE or OPM) they are currently active under. Programs added to debug after the CHGDBG command is issued are affected by the OPMSRC parameter.
</p>
<p>This parameter is applicable in both OPM and ILE environment.
</p>
<dl>
<dt><b><u>*SAME</u></b></dt>
<dd>The value does not change.
</dd>
</dl>
<dl>
<dt><b>*NO</b></dt>
<dd>OPM debug functions are used for OPM programs.
</dd>
<dt><b>*YES</b></dt>
<dd>ILE debug functions are used for OPM programs.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGDBG.COMMAND.EXAMPLES">Examples</a> </h3>
<p>
<pre>
CHGDBG MAXTRC(400) TRCFULL(*STOPTRC)
</pre>
</p>
<p>This command changes the maximum number of trace statements that can be put in the trace file to 400. The tracing is stopped when the file is full.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CHGDBG.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1999</b></dt>
<dd>Errors occurred on command.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CHGDBG.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>