522 lines
24 KiB
HTML
522 lines
24 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>Start Debug (STRDBG)</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="STRDBG.Top_Of_Page"></a>
|
|
<h2>Start Debug (STRDBG)</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="#STRDBG.PARAMETERS.TABLE">Parameters</a><br>
|
|
<a href="#STRDBG.COMMAND.EXAMPLES">Examples</a><br>
|
|
<a href="#STRDBG.ERROR.MESSAGES">Error messages</a></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div> <a name="STRDBG"></a>
|
|
<p>The Start Debug (STRDBG) command puts a job into debug mode and, optionally, adds as many as 20 programs and 20 service programs and 20 class files to debug mode. It also specifies certain attributes of the debugging session. For example, it can specify whether database files in production libraries can be updated while in debug mode.
|
|
</p>
|
|
<p>The graphical system debugger will be launched instead of the traditional system debugger if the STRDBG command is issued by a user registered for graphical debugging.
|
|
</p>
|
|
<p>Debug can operate in three environments at the same time. They are OPM (Original Program Model), ILE (Integrated Language Environment), and JAVA. Some parameters for this command are applicable for all three environments. Some parameters for this command are applicable only for OPM, ILE, or JAVA. There will be a statement in each parameter description stating the environment in which the parameter is applicable.
|
|
</p>
|
|
<p>The Change Debug (CHGDBG) command can be used later in the job to change the attributes of the debug mode. Also, OPM programs can be added to or removed from the debugging session if they are specified in the Add Program (ADDPGM) or Remove Program (RMVPGM) commands. OPM programs added with the ADDPGM command will be in the OPM debug environment.
|
|
</p>
|
|
<p>When one job is servicing another job, and STRDBG is entered, all debug commands are valid for the job being serviced. If that job is held on a job queue, no further debug commands may be entered until that job is allowed to run. When the job starts, an initial breakpoint screen is displayed. From this screen, additional debug commands may be entered. To service another job, see the STRSRVJOB (Start Service Job) command. More information about debugging one job from another job is in the CL information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter.
|
|
</p>
|
|
<p><b>Restrictions:</b>
|
|
</p>
|
|
<ul>
|
|
<li>You cannot use this command in debug mode. To end debug mode, refer to the End Debug (ENDDBG) command.
|
|
</li>
|
|
<li>You cannot use this command if you are servicing another job, and that job is held, suspended, or ending.
|
|
</li>
|
|
<li>This command is shipped with public *EXCLUDE authority and the QPGMR, QSRV, and QSRVBAS user profiles have private authorities to use this command.
|
|
</li>
|
|
<li>You must have either *CHANGE authority to the program, or *USE authority to the program and *SERVICE special authority.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
|
|
<div>
|
|
<h3><a name="STRDBG.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" rowspan="3"><a href="#STRDBG.PGM"><b>PGM</b></a></td>
|
|
<td valign="top">Program</td>
|
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 20 repetitions): <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional, Positional 1</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Program</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top"><a href="#STRDBG.DFTPGM"><b>DFTPGM</b></a></td>
|
|
<td valign="top">Default program</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*PGM</u></b>, *NONE</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#STRDBG.MAXTRC"><b>MAXTRC</b></a></td>
|
|
<td valign="top">Maximum trace statements</td>
|
|
<td valign="top"><i>Integer</i>, <b><u>200</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#STRDBG.TRCFULL"><b>TRCFULL</b></a></td>
|
|
<td valign="top">Trace full</td>
|
|
<td valign="top"><b><u>*STOPTRC</u></b>, *WRAP</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#STRDBG.UPDPROD"><b>UPDPROD</b></a></td>
|
|
<td valign="top">Update production files</td>
|
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#STRDBG.OPMSRC"><b>OPMSRC</b></a></td>
|
|
<td valign="top">OPM source level debug</td>
|
|
<td valign="top"><b><u>*NO</u></b>, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#STRDBG.SRVPGM"><b>SRVPGM</b></a></td>
|
|
<td valign="top">Service program</td>
|
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 20 repetitions): <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Service program</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top"><a href="#STRDBG.CLASS"><b>CLASS</b></a></td>
|
|
<td valign="top">Class file</td>
|
|
<td valign="top">Values (up to 20 repetitions): <i>Path name</i>, <b><u>*NONE</u></b></td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top"><a href="#STRDBG.DSPMODSRC"><b>DSPMODSRC</b></a></td>
|
|
<td valign="top">Display module source</td>
|
|
<td valign="top"><b><u>*PGMDEP</u></b>, *NO, *YES</td>
|
|
<td valign="top">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top" rowspan="3"><a href="#STRDBG.SRCDBGPGM"><b>SRCDBGPGM</b></a></td>
|
|
<td valign="top">Source debug program</td>
|
|
<td valign="top">Single values: <b><u>*SYSDFT</u></b><br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Source debug program</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr><tr>
|
|
<td valign="top" rowspan="3"><a href="#STRDBG.UNMONPGM"><b>UNMONPGM</b></a></td>
|
|
<td valign="top">Unmonitored message program</td>
|
|
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values: <i>Qualified object name</i></td>
|
|
<td valign="top" rowspan="3">Optional</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">Qualifier 1: Unmonitored message program</td>
|
|
<td valign="top"><i>Name</i></td>
|
|
</tr><tr>
|
|
<td valign="top">Qualifier 2: Library</td>
|
|
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
|
|
</tr></table>
|
|
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</div>
|
|
<div> <a name="STRDBG.PGM"></a>
|
|
<h3>Program (PGM)</h3>
|
|
<p>Specifies up to 20 programs to debug in the job. Before a program can be debugged, its name must be specified on this parameter, in the Add Program (ADDPGM) command, or the Display Module Source (DSPMODSRC) command.
|
|
</p>
|
|
<p>This parameter is applicable in both OPM and ILE environments.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>No program names are specified at the start of the debugging session. The Add Program (ADDPGM) command or the Display Module Source (DSPMODSRC) command can be used to add programs later.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Other values (up to 20 repetitions)</b>
|
|
</p>
|
|
<p><b>Qualifier 1: Program</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the program to debug. You cannot debug two programs that have the same name at the same time in the OPM debug environment. In the ILE debug environment, two programs with the same name can be debugged if they are in different libraries.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is used to locate the program. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the library where the program is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.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 the user specified a value of *DFTPGM 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>*PGM</u></b></dt>
|
|
<dd>The program named on the PGM parameter of this command is to be the default program for the job's debugging session. If there is more than one program name specified on the PGM parameter, the first OPM program named in the list that is added to the OPM debug environment is the default program. If *NONE is specified on the PGM parameter, or is the default, *NONE is also assumed when this value (*PGM) is specified.
|
|
</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 on the PGM 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 (in qualified form) must also be specified for the PGM parameter of this command. You cannot specify a bound program on this parameter.
|
|
<p>
|
|
<b>Note: </b>If OPMSRC(*YES) is specified, the OPM program may be added to either the OPM debug environment or the ILE debug environment. If added to the ILE debug environment, then it cannot be a default program for the OPM debug environment.
|
|
</p>
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.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 specified 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 TRCFULL parameter to *STOPTRC.
|
|
</p>
|
|
<p>This parameter is applicable only in the OPM environment.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>200</u></b></dt>
|
|
<dd>Two hundred trace statements can be put into the file before tracing is stopped or wrapping occurs.
|
|
</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="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.TRCFULL"></a>
|
|
<h3>Trace full (TRCFULL)</h3>
|
|
<p>Specifies what happens when the job's trace file is full (that is, it contains the maximum number of trace statements specified by the value supplied for the <b>Maximum trace statements (MAXTRC)</b> parameter.
|
|
</p>
|
|
<p>This parameter is applicable only in the OPM environment.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*STOPTRC</u></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 will complete processing 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="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.UPDPROD"></a>
|
|
<h3>Update production files (UPDPROD)</h3>
|
|
<p>Specifies whether or not database files in a production library can be opened for updating records, or for adding new records, 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 OPM and ILE environments.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></b></dt>
|
|
<dd>Database files in production libraries cannot be updated while the job is in debug mode. Database files can be opened for reading only. This protects database files from unwanted updates while a program is being debugged. The exception to this is starting debug mode after a production library is already opened. If this value is specified, some commands, which may include function keys, menu options, or pulldowns, may not work properly.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>Database files in production libraries can be updated while the job is in debug mode.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.OPMSRC"></a>
|
|
<h3>OPM source level debug (OPMSRC)</h3>
|
|
<p>Specifies that original program model (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 CRTRPTRPG 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>This parameter is applicable in both OPM and ILE environment.
|
|
</p>
|
|
<p>ILE functions will now operate on OPM programs. For example, source level debug.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NO</u></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="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.SRVPGM"></a>
|
|
<h3>Service program (SRVPGM)</h3>
|
|
<p>Specifies up to 20 service programs to debug in the job. Before a service program can be debugged, its name must be specified on this parameter or the Display Module Source (DSPMODSRC) command.
|
|
</p>
|
|
<p>This parameter is applicable only in the ILE environment.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>No service program names are specified at the start of the debugging session. The Display Module Source (DSPMODSRC) command can be used to add service programs later.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Other values (up to 20 repetitions)</b>
|
|
</p>
|
|
<p><b>Qualifier 1: Service program</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the service program to debug.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is used to locate the service program. If no library is specified as the current library for the job, QGPL is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the library where the service program is located.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.CLASS"></a>
|
|
<h3>Class file (CLASS)</h3>
|
|
<p>Specifies up to 20 class files to debug in the job. Before a class file can be debugged, its name must be specified on this parameter or the Display Module Source (DSPMODSRC) command.
|
|
</p>
|
|
<p>This parameter is applicable only in the ILE environment.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>No class files are specified at the start of the debugging session. The Display Module Source (DSPMODSRC) command can be used to add class files later.
|
|
</dd>
|
|
<dt><b><i>path-name</i></b></dt>
|
|
<dd>Specify the path names of the class file to debug.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.DSPMODSRC"></a>
|
|
<h3>Display module source (DSPMODSRC)</h3>
|
|
<p>Specifies whether the first display of the source debug program is shown when this command is processed and no errors occur.
|
|
</p>
|
|
<p>This parameter is applicable only in the ILE environment.
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*PGMDEP</u></b></dt>
|
|
<dd>The showing of the source debug program display is dependent on the programs specified on the <b>Program (PGM)</b> parameter. If any of the programs are ILE programs, the display is shown. If any of the programs are OPM programs with source debug data, and OPMSRC(*YES) is specified, the display is shown. If all of the programs are OPM programs and OPMSRC(*NO) is specified, the display is not shown.
|
|
</dd>
|
|
<dt><b>*NO</b></dt>
|
|
<dd>The first display of the source debug program is not shown.
|
|
</dd>
|
|
<dt><b>*YES</b></dt>
|
|
<dd>The first display of the source debug program is shown.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.SRCDBGPGM"></a>
|
|
<h3>Source debug program (SRCDBGPGM)</h3>
|
|
<p>Specifies the source debug program to be used. See the System API Reference information in the iSeries Information Center at http://www.ibm.com/eserver/iseries/infocenter for an explanation of this parameter.
|
|
</p>
|
|
<p>This parameter is applicable only in the ILE environment.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*SYSDFT</u></b></dt>
|
|
<dd>The system source debug program is used.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 1: Source debug program</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the program to be used to debug programs.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<div> <a name="STRDBG.UNMONPGM"></a>
|
|
<h3>Unmonitored message program (UNMONPGM)</h3>
|
|
<p>Specifies the qualified name of the user-supplied program called when a message that is not monitored occurs in the job being debugged. When the program specified is called, it is passed parameters that identify the program name, the recursion level, the high-level language statement identifier, the machine instruction number at which the breakpoint occurred, the message that was not monitored, the message data, the length of the message data, and the message reference key.
|
|
</p>
|
|
<p>This parameter is applicable only in the OPM environment.
|
|
</p>
|
|
<p>The passed parameters have the following formats:
|
|
</p>
|
|
<ol>
|
|
<li>Program name (10 bytes). Specifies the name of the program in which the breakpoint was reached.
|
|
</li>
|
|
<li>Recursion level (5 bytes). Specifies the recursion level number of the program in which the breakpoint was reached. This value is a 1- to 5-digit number padded on the right with blanks.
|
|
</li>
|
|
<li>Statement Identifier (10 bytes). Specifies the high-level language program statement identifier that was reached. This is the statement identifier specified on the Add Breakpoint (ADDBKP) command. If a machine instruction number is used to specify the breakpoint, this parameter contains a slash (/) followed by a 4-digit hexadecimal machine instruction number.
|
|
</li>
|
|
<li>Instruction number (5 bytes). Specifies the machine instruction number that corresponds to the high-level language statement at which the breakpoint was reached. No slash appears in front of the machine instruction number. The value consists of 1 to 4 hexadecimal characters representing the MI instruction number, followed by one or more blanks. If a machine instruction number is passed on the third parameter, the numbers in the third and fourth parameters are the same.
|
|
</li>
|
|
<li>Message ID (7 bytes). Specifies the ID of the message that was not monitored.
|
|
</li>
|
|
<li>Message data (256 bytes). Specifies the first 256 bytes of message data sent with the message not monitored.
|
|
</li>
|
|
<li>Message data length (5 bytes). Specifies the length of the message data sent with the message not monitored.
|
|
</li>
|
|
<li>Message MRK (4 bytes). Specifies the message reference key (MRK) of the message not monitored.
|
|
</li>
|
|
</ol>
|
|
<p>All the parameter values are left-adjusted and padded on the right with blanks. When control returns to the program with the message that was not monitored, processing continues.
|
|
</p>
|
|
<p><b>Single values</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*NONE</u></b></dt>
|
|
<dd>No program is called when a message that is not monitored occurs.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 1: Unmonitored message program</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the user-supplied program called when a message that is not monitored occurs in the job being debugged. After the program runs, control is returned to the interrupted program.
|
|
</dd>
|
|
</dl>
|
|
<p><b>Qualifier 2: Library</b>
|
|
</p>
|
|
<dl>
|
|
<dt><b><u>*LIBL</u></b></dt>
|
|
<dd>All libraries in the library list for the current thread are searched until the first match is found.
|
|
</dd>
|
|
</dl>
|
|
<dl>
|
|
<dt><b>*CURLIB</b></dt>
|
|
<dd>The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
|
|
</dd>
|
|
<dt><b><i>name</i></b></dt>
|
|
<dd>Specify the name of the library to be searched.
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="STRDBG.COMMAND.EXAMPLES">Examples</a> </h3>
|
|
<p><b>Example 1: Start Debug for Program</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
STRDBG PGM(TESTLIB/PAYROLL) UPDPROD(*NO)
|
|
</pre>
|
|
</p>
|
|
<p>This command starts debug mode to debug the program PAYROLL, which is in the test library TESTLIB. If tracing is used, up to 200 trace statements can be stored in the trace before tracing stops. If program PAYROLL is a bound program, the Display Module Source display will be shown, giving the source for the module that contains the program entry point. Any database files updated by the PAYROLL program must be in a test library.
|
|
</p>
|
|
<p><b>Example 2: Start Debug for Class File</b>
|
|
</p>
|
|
<p>
|
|
<pre>
|
|
STRDBG CLASS('financial.payapplet')
|
|
</pre>
|
|
</p>
|
|
<p>This command starts debug mode to debug the class <b>payapplet</b> in the <b>financial</b> package.
|
|
</p>
|
|
</div>
|
|
<table width="100%">
|
|
<tr><td align="right"><a href="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
<hr size="2" width="100%">
|
|
<div><h3><a name="STRDBG.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="#STRDBG.Top_Of_Page">Top</a></td></tr>
|
|
</table>
|
|
</body>
|
|
</html>
|