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

564 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 Database Monitor (STRDBMON)</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="STRDBMON.Top_Of_Page"></a>
<h2>Start Database Monitor (STRDBMON)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>Conditional
</td>
<td valign="top" align="right">
<a href="#STRDBMON.PARAMETERS.TABLE">Parameters</a><br>
<a href="#STRDBMON.COMMAND.EXAMPLES">Examples</a><br>
<a href="#STRDBMON.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="STRDBMON"></a>
<p>The Start Database Monitor (STRDBMON) command starts the collection of database performance statistics for a specified job, for all jobs on the system or for a selected set of jobs. The statistics are placed in a user-specified database file and member. If the file or member do not exist, one is created based on the QAQQDBMN file in library QSYS. If the file or member do exist, the record format of the specified file is verified to insure it is the same.
</p>
<p>For each monitor started using the STRDBMON commmand, the system generates a monitor ID that can be used to uniquely identify each individual monitor. The monitor ID can be used on the ENDDBMON command to uniquely identify which monitor is to be ended. The monitor ID is returned in the informational message CPI436A which is generated for each occurrence of the STRDBMON command. The monitor ID can also be found in column QQC101 of the QQQ3018 database monitor record.
</p>
<p><b>Restrictions:</b>
</p>
<ol>
<li>There are two types of monitors. A private monitor is a monitor over one, specific job (or the current job). A public monitor is a monitor which collects data across mulitple jobs. Only one (1) monitor can be started on a specific job at a time (i.e. only one private monitor can be active over any specific job). For example, STRDBMON JOB(*) followed by another STRDBMON JOB(*) within the same job is not allowed. There can be a maximum of ten (10) public monitors active at any one time. For example, STRDBMON JOB(*ALL) followed by another STRDBMON JOB(*ALL) is allowed providing the maximum number of public monitors does not exceed 10. You may have 10 public monitors and 1 private monitor active at the same time for any specific job.
</li>
<li>If multiple monitors specify the same output file, only one copy of the database statistic records will be written to the specified output file for each job. For example, STRDBMON OUTFILE(LIB/TABLE1) JOB(*) and STRDBMON OUTFILE(LIB/TABLE1) JOB(*ALL) both use the same output file. For the current job, you will not get two copies of the database statistic records, one copy for the private monitor and one copy for the public monitor. You will get only one copy of the database statistic records.
</li>
<li>QTEMP cannot be specified as the library on the OUTFILE parameter unless JOB(*) was also specified.
</li>
<li>This command is conditionally threadsafe. For multithreaded jobs, this command is not threadsafe and may fail when the OUTFILE parameter is a distributed file or is a Distributed Data Management (DDM) file of type *SNA.
</li>
<li>Any public monitor requires the file specified for the OUTFILE parameter to be in a library that resides in the system ASP.
</li>
</ol>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="STRDBMON.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="#STRDBMON.OUTFILE"><b>OUTFILE</b></a></td>
<td valign="top">File to receive output</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Positional 1</td>
</tr>
<tr>
<td valign="top">Qualifier 1: File to receive output</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="#STRDBMON.OUTMBR"><b>OUTMBR</b></a></td>
<td valign="top">Output member options</td>
<td valign="top"><i>Element list</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Element 1: Member to receive output</td>
<td valign="top">
<i>Name</i>, <b><u>*FIRST</u></b></td>
</tr>
<tr>
<td valign="top">Element 2: Replace or add records</td>
<td valign="top">
<b><u>*REPLACE</u></b>, *ADD</td>
</tr>
<tr>
<td valign="top" rowspan="4"><a href="#STRDBMON.JOB"><b>JOB</b></a></td>
<td valign="top">Job name</td>
<td valign="top">Single values: <b><u>*</u></b><br>Other values: <i>Qualified job name</i></td>
<td valign="top" rowspan="4">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Job name</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
</tr><tr>
<td valign="top">Qualifier 2: User</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
</tr><tr>
<td valign="top">Qualifier 3: Number</td>
<td valign="top">000000-999999, *ALL</td>
</tr><tr>
<td valign="top"><a href="#STRDBMON.TYPE"><b>TYPE</b></a></td>
<td valign="top">Type of records</td>
<td valign="top"><b><u>*BASIC</u></b>, *DETAIL, *SUMMARY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRDBMON.FRCRCD"><b>FRCRCD</b></a></td>
<td valign="top">Force record write</td>
<td valign="top">0-32767, <b><u>*CALC</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRDBMON.RUNTHLD"><b>RUNTHLD</b></a></td>
<td valign="top">Run time threshold</td>
<td valign="top">0-2147483647, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRDBMON.INCSYSSQL"><b>INCSYSSQL</b></a></td>
<td valign="top">Include system SQL</td>
<td valign="top"><b><u>*NO</u></b>, *YES, *INI</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#STRDBMON.FTRFILE"><b>FTRFILE</b></a></td>
<td valign="top">Filter by database file</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values (up to 10 repetitions): <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Filter by database file</td>
<td valign="top"><i>Generic name, name</i>, *ALL</td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Generic name, name</i></td>
</tr><tr>
<td valign="top"><a href="#STRDBMON.FTRUSER"><b>FTRUSER</b></a></td>
<td valign="top">Filter by user profile</td>
<td valign="top"><i>Generic name, name</i>, <b><u>*NONE</u></b>, *CURRENT</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRDBMON.FTRINTNETA"><b>FTRINTNETA</b></a></td>
<td valign="top">Filter by internet address</td>
<td valign="top"><i>Character value</i>, <b><u>*NONE</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#STRDBMON.COMMENT"><b>COMMENT</b></a></td>
<td valign="top">Comment</td>
<td valign="top"><i>Character value</i>, <b><u>*BLANK</u></b></td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="STRDBMON.OUTFILE"></a>
<h3>File to receive output (OUTFILE)</h3>
<p>Specifies the file to which the performance statistics are to be written. If the file does not exist, it is created based on model file QAQQDBMN in library QSYS.
</p>
<p>This is a required parameter.
</p>
<p><b>Qualifier 1: File to receive output</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the file.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><u>*LIBL</u></b></dt>
<dd>All libraries in the job's library list are searched until the first match is found.
</dd>
<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="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.OUTMBR"></a>
<h3>Output member options (OUTMBR)</h3>
<p>Specifies the name of the database file member that receives the output of the command.
</p>
<p><b>Element 1: Member to receive output</b>
</p>
<dl>
<dt><b><u>*FIRST</u></b></dt>
<dd>The first member in the file receives the output. If OUTMBR(*FIRST) is specified and the member does not exist, the system creates a member with the name of the file specified for the <b>File to receive output (OUTFILE)</b> parameter. If the member already exists, you have the option to add new records to the end of the existing member or clear the member and then add the new records.
</dd>
</dl>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the file member that receives the output. If it does not exist, the system creates it.
</dd>
</dl>
<p><b>Element 2: Replace or add records</b>
</p>
<dl>
<dt><b><u>*REPLACE</u></b></dt>
<dd>The system clears the existing member and adds the new records.
</dd>
</dl>
<dl>
<dt><b>*ADD</b></dt>
<dd>The system adds the new records to the end of the existing records.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.JOB"></a>
<h3>Job name (JOB)</h3>
<p>Specifies the job(s) for which the database monitor is to be started.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*</u></b></dt>
<dd>The database monitor for the job running the STRDBMON command is to be started.
</dd>
<dt><b>*ALL</b></dt>
<dd>All jobs on the system are monitored, including jobs waiting on job queues.
</dd>
</dl>
<p><b>Qualifier 1: Job name</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the job whose database monitor is to be started. If no job user name or job number qualifiers are specified, all of the jobs currently in the system are searched for the specified simple job name. If duplicates of the specified job name are found, you need to specify a job user name or job number that uniquely identifies the job to be changed.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the jobs whose database monitor are to be started. All jobs matching the specified generic name, including jobs waiting on job queues, will be monitored.
</dd>
</dl>
<p><b>Qualifier 2: User</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Specify the name of the user of the job whose database monitor is to be started.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>Specify the generic name of the user whose jobs are to be monitored. All jobs matching the specified generic name, including jobs waiting on job queues, will be monitored.
</dd>
</dl>
<p><b>Qualifier 3: Number</b>
</p>
<dl>
<dt><b><i>000000-999999</i></b></dt>
<dd>Specify the number of the job whose database monitor is to be started.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.TYPE"></a>
<h3>Type of records (TYPE)</h3>
<p>Specifies the type of database records to place in the outfile.
</p>
<dl>
<dt><b><u>*BASIC</u></b></dt>
<dd>Only the basic database monitor records are collected.
</dd>
<dt><b>*DETAIL</b></dt>
<dd>Both basic and detail database monitor records are collected. The detail database monitor record (QQQ3019) contains a count of the number of synchronous and asynchronous reads and writes to the database, as well as other database counts.
</dd>
<dt><b>*SUMMARY</b></dt>
<dd>Only the basic database monitor records are collected.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.FRCRCD"></a>
<h3>Force record write (FRCRCD)</h3>
<p>Specifies the number of records to be held in the buffer before forcing the records to be written to the file.
</p>
<dl>
<dt><b><u>*CALC</u></b></dt>
<dd>The system will calculate the number of records to be held in the buffer.
</dd>
<dt><b><i>number-of-records</i></b></dt>
<dd>Specify the number of records to be held. Valid values range from 0 through 32767.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.RUNTHLD"></a>
<h3>Run time threshold (RUNTHLD)</h3>
<p>Specifies a filtering threshold based on the estimated run time of the SQL statement. Monitor records will be created only for those SQL statements whose estimated run time meets or exceeds the specified run time threshold. If the estimated run time of the SQL statement is less than the specified threshold then no monitor records will be created for that SQL statement.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>A run time threshold is not specified. All monitor records will be created.
</dd>
<dt><b><i>runtime-threshold</i></b></dt>
<dd>Specify the run time threshold, in seconds. Monitor records will be created for all SQL statements whose estimated run time meets or exceeds this value.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.INCSYSSQL"></a>
<h3>Include system SQL (INCSYSSQL)</h3>
<p>Specifies whether or not monitor records will be created for system-generated SQL statements. Monitor records will always be created for user-specified SQL statements. This option determines if monitor records will also be created for SQL statements generated internally by the system.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>No monitor records will be created for system-generated SQL statements. Monitor records will only be created for user-specified SQL statements.
</dd>
<dt><b>*YES</b></dt>
<dd>Monitor records will be created for both user-specified and system-generated SQL statements.
</dd>
<dt><b>*INI</b></dt>
<dd>Monitor records will be generated based on the value of the SQL_DBMON_OUTPUT option in the current INI file. A value of *USER or *DEFAULT creates monitor records for just user-specified SQL statements. A value of *SYSTEM creates monitor records for just system-generated SQL statements. A value of *ALL creates monitor records for both user-specified and system-generated SQL statements. If no INI file exists, then a default value of *NO will be used for the INCSYSSQL option.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.FTRFILE"></a>
<h3>Filter by database file (FTRFILE)</h3>
<p>Specifies a filter based on the name of the file and library used within the SQL statement. Monitor records will be created only for those SQL statements that use the qualified file. The specified file name can be either the 10-byte short name or the 256-byte long name.
</p>
<p><b>Single values</b>
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No filtering by file is specified.
</dd>
</dl>
<p><b>Qualifier 1: Data base file</b>
</p>
<dl>
<dt><b>*ALL</b></dt>
<dd>Monitor records will be created for any SQL statement that uses any file in the specified library. If none of the files used in the SQL statement come from the specified library, no monitor monitor records will be created for the SQL statement.
</dd>
<dt><b><i>name</i></b></dt>
<dd>Monitor records will be created only for those SQL statements that use the specified file. Monitor records will not be created for any SQL statements that do not use the specified file.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>Monitor records will be created only for those SQL statements that use a file that matches the generic prefix. If none of the files used in the SQL statement match the specified prefix, no monitor monitor records will be created for the SQL statement.
</dd>
</dl>
<p><b>Qualifier 2: Library</b>
</p>
<dl>
<dt><b><i>name</i></b></dt>
<dd>Monitor records will be created only for those SQL statements that use a file from the specified library. Monitor records will not be created if none of the files used in the SQL statement come from the specified library.
</dd>
<dt><b><i>generic-name</i></b></dt>
<dd>Monitor records will be created only for those SQL statements that use a file from a library that matches the generic prefix. If none of the files used in the SQL statement come from the generic library, no monitor monitor records will be created for the SQL statement.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.FTRUSER"></a>
<h3>Filter by user profile (FTRUSER)</h3>
<p>Specifies a filter based on a user profile name. Monitor records will be created only for those SQL statements that are executed by the specified user. Monitor records will not be created for SQL statements executed by a different user.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Filtering by user is not specified.
</dd>
<dt><b>*CURRENT</b></dt>
<dd>Monitor records will be created only for those SQL statements that are executed by the user who is invoking the STRDBMON command. Monitor records will not be created for SQL statements executed by a different user.
</dd>
<dt><b><i>user-name</i></b></dt>
<dd>Monitor records will be created only for those SQL statements that are executed by the specified user. Monitor records will not be created for SQL statements executed by a different user.
</dd>
<dt><b><i>generic-user-name</i></b></dt>
<dd>Monitor records will be created only for those SQL statements that are executed by a user whose name starts with the specified prefix. Monitor records will not be created for SQL statements executed by a different user.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.FTRINTNETA"></a>
<h3>Filter by internet address (FTRINTNETA)</h3>
<p>Specifies filtering based on the internet address of a remote system. Monitor records will be created only for those SQL statements executed from the specified remote system.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>Internet address filtering is not specified.
</dd>
<dt><b><i>internet-address</i></b></dt>
<dd>The internet address is specified in the form <b>nnn.nnn.nnn.nnn</b>, where <b>nnn</b> is a decimal number ranging from 0 through 255, without the leading zeros. (An internet address having all binary ones or zeros in the bits of the network or host identifier portions of the address is not valid.)
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="STRDBMON.COMMENT"></a>
<h3>Comment (COMMENT)</h3>
<p>User-specified description that is associated with the database monitor. The description is stored in the monitor record that has a record ID of 3018.
</p>
<dl>
<dt><b><u>*BLANK</u></b></dt>
<dd>Text is not specified.
</dd>
<dt><b><i>character-value</i></b></dt>
<dd>Specify up to 100 characters of text.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="STRDBMON.COMMAND.EXAMPLES">Examples</a> </h3>
<p><b>Example 1: Starting Database Monitoring For All Jobs</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(QGPL/FILE1) OUTMBR(MEMBER1 *ADD)
JOB(*ALL) FRCRCD(10)
</pre>
</p>
<p>This command starts database monitoring for all jobs on the system. The performance statistics are added to the member named MEMBER1 in the file named FILE1 in the QGPL library. Ten records will be held before being written to the file.
</p>
<p><b>Example 2: Starting Database Monitoring For a Specific Job</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(*LIBL/FILE3) OUTMBR(MEMBER2)
JOB(134543/QPGMR/DSP01) FRCRCD(20)
</pre>
</p>
<p>This command starts database monitoring for job number 134543. The job name is DSP01 and was started by the user named QPGMR. The performance statistics are added to the member named MEMBER2 in the file named FILE3. Twenty records will be held before being written to the file.
</p>
<p><b>Example 3: Starting Database Monitoring For a Specific Job to a File in a Library in an Independent ASP</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(LIB41/DBMONFILE) JOB(134543/QPGMR/DSP01)
</pre>
</p>
<p>This command starts database monitoring for job number 134543. The job name is DSP01 and was started by the user named QPGMR. The performance statistics are added to the member name DBMONFILE (since OUTMBR was not specified) in the file named DBMONFILE in the library named LIB41. This library may exist in more than one independent auxiliary storage pool (ASP); the library in the name space of the originator's job will always be used.
</p>
<p><b>Example 4: Starting Database Monitoring For All Jobs That Begin With 'QZDA'</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(LIB41/DBMONFILE) JOB(*ALL/*ALL/QZDA*)
</pre>
</p>
<p>This command starts database monitoring for all jobs that whose job name begins with 'QZDA'. The performance statistics (monitor records) are added to member DBMONFILE (since OUTMBR was not specified) in file DBMONFILE in library LIB41. This library may exist in more than one independent auxiliary storage pool (ASP); the library in the name space of the originator's job will always be used.
</p>
<p><b>Example 5: Starting Database Monitoring For All Jobs and Filtering SQL Statements That Run Over 10 Seconds</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(LIB41/DBMONFILE) JOB(*ALL) RUNTHLD(10)
</pre>
</p>
<p>This command starts database monitoring for all jobs. Monitor records are created only for those SQL statements whose estimated run time meets or exceeds 10 seconds.
</p>
<p><b>Example 6: Starting Database Monitoring For the Current Job and Filtering Over a Specific File</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(LIB41/DBMONFILE) JOB(*)
FTRFILE(LIB41/TABLE1)
</pre>
</p>
<p>This command starts database monitoring for the current job. Monitor records are created only for those SQL statements that use file LIB41/TABLE1.
</p>
<p><b>Example 7: Starting Database Monitoring For the Current Job and the Current User</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(LIB41/DBMONFILE) JOB(*) FTRUSER(*CURRENT)
</pre>
</p>
<p>This command starts database monitoring for the current job. Monitor records are created only for those SQL statements that are executed by the current user.
</p>
<p><b>Example 8: Starting Database Monitoring For Jobs Beginning With 'QZDA' and Filtering Over Run Time and File</b>
</p>
<p>
<pre>
STRDBMON OUTFILE(LIB41/DBMONFILE) JOB(*ALL/*ALL/QZDA*)
RUNTHLD(10) FTRUSER(DEVLPR1) FTRFILE(LIB41/TTT*)
</pre>
</p>
<p>This command starts database monitoring for all jobs whose job name begins with 'QZDA'. Monitor records are created only for those SQL statements that meet all of the following conditions:
</p>
<ul>
<li>The estimated run time, as calculated by the query optimizer, meets or exceeds 10 seconds
</li>
<li>Was executed by user 'DEVLPR1'.
</li>
<li>Use any file whose name begins with 'TTT' and resides in library LIB41.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="STRDBMON.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>CPF1321</b></dt>
<dd>Job &amp;1 user &amp;2 job number &amp;3 not found.
</dd>
<dt><b>CPF222E</b></dt>
<dd>&amp;1 special authority is required.
</dd>
<dt><b>CPF4269</b></dt>
<dd>Not authorized to object &amp;1 in &amp;2 type *&amp;3.
</dd>
<dt><b>CPF436A</b></dt>
<dd>Record format for file &amp;1 in &amp;2 does not match model file.
</dd>
<dt><b>CPF436B</b></dt>
<dd>&amp;1 can not be specified on the OUTFILE parameter.
</dd>
<dt><b>CPF436C</b></dt>
<dd>Job &amp;4 is already being monitored.
</dd>
<dt><b>CPF436E</b></dt>
<dd>Job &amp;1 user &amp;2 job number &amp;3 is not active.
</dd>
<dt><b>CPF43A2</b></dt>
<dd>Address specified on FTRINTNETA parameter is not valid.
</dd>
</dl>
<p><b><u>*STATUS Messages</u></b>
</p>
<dl>
<dt><b>CPI436A</b></dt>
<dd>Database monitor started for job &amp;1, monitor ID &amp;2.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#STRDBMON.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>