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

794 lines
30 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>Add DPR Registration (ADDDPRREG)</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="ADDDPRREG.Top_Of_Page"></a>
<h2>Add DPR Registration (ADDDPRREG)</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="#ADDDPRREG.PARAMETERS.TABLE">Parameters</a><br>
<a href="#ADDDPRREG.COMMAND.EXAMPLES">Examples</a><br>
<a href="#ADDDPRREG.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="ADDDPRREG"></a>
<p>The Add DPR Registration command (ADDDPRREG) allows the user to register a source table for use with DataPropagator. The source table can be located on this system or on a remote system. If it is on a remote system, you must set up the registration to use remote journaling. You do this by using the SRCTBLRDB parameter to identify the remote relational database where the source table resides.
</p>
<ul>
<li>Note: Do not precede an entry with an asterisk unless that entry is shown on the display itself or in the help information with an asterisk.
</li>
</ul>
<h3>Error Messages for ADDDPRREG</h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>ASN2051</b></dt>
<dd>Not authorized to Registration Extension table.
</dd>
<dt><b>ASN2501</b></dt>
<dd>Not authorized to register table.
</dd>
<dt><b>ASN3020</b></dt>
<dd>Registration for source table completed.
</dd>
<dt><b>ASN3027</b></dt>
<dd>Table not journaled with *BOTH images.
</dd>
<dt><b>ASN3036</b></dt>
<dd>Column not found.
</dd>
<dt><b>ASN3055</b></dt>
<dd>Cannot capture changes for table .
</dd>
<dt><b>ASN3069</b></dt>
<dd>Relative record numbers cannot be captured.
</dd>
<dt><b>ASN3075</b></dt>
<dd>Relative record numbers cannot be captured for an aggregate source table.
</dd>
<dt><b>ASN3115</b></dt>
<dd>Relational database is not DB2/400 V4R2 or greater.
</dd>
<dt><b>ASN3116</b></dt>
<dd>Remote journal in library is not found.
</dd>
<dt><b>ASN3121</b></dt>
<dd>The source table journal does not match the data from the RMTJRN parameter.
</dd>
<dt><b>ASN3122</b></dt>
<dd>The SRCTBLRDB parameter cannot specify a remote souce table that is a logical file.
</dd>
<dt><b>ASN3125</b></dt>
<dd>Local relational database is not DB2/400 V4R2 or greater.
</dd>
<dt><b>ASN3213</b></dt>
<dd>Base attributes not valid for base type.
</dd>
<dt><b>ASN3217</b></dt>
<dd>CAPRRN(*YES) not valid with aggregate base type. A value of *YES on the CAPRRN parameter is not valid
</dd>
<dt><b>ASN3219</b></dt>
<dd>You must specify *NO on the CAPRRN parameter when the CAPCOL parameter has a value of *NONE.
</dd>
<dt><b>ASN3230</b></dt>
<dd>A Remote Journal Name cannot be specified if the Source Table RDB is *LOCAL.
</dd>
<dt><b>ASN3238</b></dt>
<dd>The source table does not contain the correct columns for a source type.
</dd>
<dt><b>ASN3249</b></dt>
<dd>Relative record number column IBMQSQ_RRN is not available.
</dd>
<dt><b>ASN3254</b></dt>
<dd>Registration already exists for table .
</dd>
<dt><b>ASN3279</b></dt>
<dd>View table has more columns than subselect string.
</dd>
<dt><b>ASN3280</b></dt>
<dd>View subselect string missing correlation name.
</dd>
<dt><b>ASN3281</b></dt>
<dd>View subselect string missing file name.
</dd>
<dt><b>ASN3284</b></dt>
<dd>SQLFILE must not be *NONE when FROMGUI is *YES.
</dd>
<dt><b>ASN3285</b></dt>
<dd>MSGFILE must not be *NONE when FROMGUI is *YES.
</dd>
<dt><b>ASN3286</b></dt>
<dd>SQLFILE and MSGFILE names are the same.
</dd>
<dt><b>ASN3292</b></dt>
<dd>Register table not found.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ADDDPRREG.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="#ADDDPRREG.SRCTBL"><b>SRCTBL</b></a></td>
<td valign="top">Source table</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: Source table</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top"><a href="#ADDDPRREG.CAPCTLLIB"><b>CAPCTLLIB</b></a></td>
<td valign="top">Capture control library</td>
<td valign="top"><i>Name</i>, <b><u>ASN</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.CDLIB"><b>CDLIB</b></a></td>
<td valign="top">Library for CD table</td>
<td valign="top"><i>Name</i>, <b><u>*SRCTBL</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.CDNAME"><b>CDNAME</b></a></td>
<td valign="top">Name of CD table</td>
<td valign="top"><i>Name</i>, <b><u>*DEFAULT</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.SRCTYPE"><b>SRCTYPE</b></a></td>
<td valign="top">Source table type</td>
<td valign="top"><b><u>*USERTABLE</u></b>, *POINTINTIME, *CCD, *BASEAGR, *CHANGEAGR, *REPLICA, *USERCOPY</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.REFRESH"><b>REFRESH</b></a></td>
<td valign="top">Allow full refresh</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.TEXT"><b>TEXT</b></a></td>
<td valign="top">Text 'description'</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="#ADDDPRREG.CAPCOL"><b>CAPCOL</b></a></td>
<td valign="top">Capture columns</td>
<td valign="top">Single values: <b><u>*ALL</u></b>, *NONE<br>Other values (up to 300 repetitions): <i>Character value</i></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.CAPRRN"><b>CAPRRN</b></a></td>
<td valign="top">Capture relative record number</td>
<td valign="top">*YES, <b><u>*NO</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.IMAGE"><b>IMAGE</b></a></td>
<td valign="top">Record images</td>
<td valign="top"><b><u>*AFTER</u></b>, *BOTH</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.PREFIX"><b>PREFIX</b></a></td>
<td valign="top">Prefix character</td>
<td valign="top"><i>Character value</i>, <b><u>*DEFAULT</u></b>, *NULL</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.CONDENSED"><b>CONDENSED</b></a></td>
<td valign="top">Condensed</td>
<td valign="top"><b><u>*YES</u></b>, *NO, *AGGREGATE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.COMPLETE"><b>COMPLETE</b></a></td>
<td valign="top">Complete</td>
<td valign="top"><b><u>*YES</u></b>, *NO</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.FROMGUI"><b>FROMGUI</b></a></td>
<td valign="top">Command from GUI</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.SQLFILE"><b>SQLFILE</b></a></td>
<td valign="top">SQL output file</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="#ADDDPRREG.MSGFILE"><b>MSGFILE</b></a></td>
<td valign="top">Message output file</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="#ADDDPRREG.SRCTBLRDB"><b>SRCTBLRDB</b></a></td>
<td valign="top">Source table RDB</td>
<td valign="top"><i>Name</i>, <b><u>*LOCAL</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#ADDDPRREG.RMTJRN"><b>RMTJRN</b></a></td>
<td valign="top">Remote journal</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Remote journal</td>
<td valign="top"><i>Name</i>, <b><u>*SRCTBL</u></b></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top"><a href="#ADDDPRREG.CONFLICT"><b>CONFLICT</b></a></td>
<td valign="top">Conflict level</td>
<td valign="top"><b><u>*NONE</u></b>, *STANDARD, *ENHANCED</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.UPDDELINS"><b>UPDDELINS</b></a></td>
<td valign="top">Update using delete/insert</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.GENCDROW"><b>GENCDROW</b></a></td>
<td valign="top">Generate change data rows</td>
<td valign="top"><b><u>*ALLCHG</u></b>, *REGCOLCHG</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.RECAP"><b>RECAP</b></a></td>
<td valign="top">Recapture changes</td>
<td valign="top">*NO, <b><u>*YES</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#ADDDPRREG.STOPONERR"><b>STOPONERR</b></a></td>
<td valign="top">Stop on error</td>
<td valign="top"><b><u>*NO</u></b>, *YES</td>
<td valign="top">Optional</td>
</tr>
</table>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="ADDDPRREG.SRCTBL"></a>
<h3>Source table (SRCTBL)</h3>
<p>Identifies the table to register as a source table. This is a required parameter. This table can be any externally defined single format physical file or view in an iSeries library or collection.
</p>
<p>When SRCTYPE(*POINTINTIME) is specified, the table must have a unique key, and the data in the key field cannot be changed.
</p>
<p>To capture changes, the table must also have journaling started with both images; that is, you must run the Start Journal Physical File (STRJRNPF) command with IMAGES(*BOTH) specified.
</p>
<dl>
<dt><b>library-name/table-name</b></dt>
<dd>The qualified name of the table to be registered. If you are setting this source table up to be journaled using remote journaling, this is the source table's name on the remote system.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CAPCTLLIB"></a>
<h3>Capture control library (CAPCTLLIB)</h3>
<p>Specifies the library where the Capture control tables are located.
</p>
<dl>
<dt><b><u>ASN</u></b></dt>
<dd>Specifies the default library of ASN containing the Capture control tables.
</dd>
<dt><b>library-name </b></dt>
<dd>Name of the library containing the Capture control tables. This library should exist and have been created using the CRTDPRTBL command with the library specified in the CAPCTLLIB parameter.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CDLIB"></a>
<h3>Library for CD table (CDLIB)</h3>
<p>Specifies the name of the library in which the Change Data (CD) table is to be created.
</p>
<dl>
<dt><b><u>*SRCTBL</u></b></dt>
<dd>Create the Change Data table in the library where the source table resides.
</dd>
<dt><b>library-name</b></dt>
<dd>Create the Change Data table in the specified library. An error will be generated if the library does not exist.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CDNAME"></a>
<h3>Name of CD table (CDNAME)</h3>
<p>Specifies the name of the Change Data (CD) table. This table must not already exist. It will be created in the library specified on the CDLIB parameter.
</p>
<dl>
<dt><b><u>*DEFAULT</u></b></dt>
<dd>Create the Change Data table using the default naming convention. The default name includes the date and time stamp to make it unique.
</dd>
<dt><b>cd-name</b></dt>
<dd>Specifies the name of the Change Data table.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.SRCTYPE"></a>
<h3>Source table type (SRCTYPE)</h3>
<p>Specifies the type of source table being registered. The point-in-time, base aggregate, change aggregate, replica, and CCD types are DataPropagator target tables that are optionally registered for the user when a subscription is created. When registering to a target table that already exists, the registration fails if the target table does not contain the IBMSNAP columns indicated for the specified source type.
</p>
<dl>
<dt><b><u>*USERTABLE</u></b></dt>
<dd>The table is a user database table. This is the most common type of table that you register. The table can not contain any columns that start with the DataPropagator column identifier, IBMSNAP.
<p>Your source table must be this type if you are using remote journaling.
</p>
</dd>
<dt><b>*POINTINTIME</b></dt>
<dd>The table is a point-in-time copy, whose content matches all or part of a source table, with an added system column that identifies the time when the particular row was inserted or updated at the source system. The table must contain the IBMSNAP_LOGMARKER TIMESTAMP column and can optionally have an INTEGER column called IBMQSQ_RRN.
</dd>
<dt><b>*BASEAGR</b></dt>
<dd>The table is a base aggregate copy, which contains data aggregated from a user table or point-in-time table at intervals. The table must contain the IBMSNAP_HLOGMARKER and IBMSNAP_LLOGMARKER TIMESTAMP columns.
</dd>
<dt><b>*CHANGEAGR</b></dt>
<dd>The table is a change aggregate copy, which contains data aggregations based on changes recorded for a source table. The table must contain the IBMSNAP_HLOGMARKER and IBMSNAP_LLOGMARKER TIMESTAMP columns.
</dd>
<dt><b>*CCD</b></dt>
<dd>The table is a consistent copy, which contains transaction consistent data from the source table. The table must contain the following columns:
<ul>
<li>IBMSNAP_LOGMARKER CHAR(10) FOR BIT DATA NOT NULL
</li>
<li>IBMSNAP_OPERATION CHAR(1) NOT NULL
</li>
<li>IBMSNAP_COMMITSEQ CHAR(10) FOR BIT DATA NOT NULL
</li>
<li>IBMSNAP_LOGMARKER TIMESTAMP NOT NULL
</li>
</ul>
<p>The table can optionally have an INTEGER column called IBMQSQ_RRN.
</p>
</dd>
<dt><b>*REPLICA</b></dt>
<dd>The table is a target table for a replica subscription and is being registered so changes from the target table can be fed back to the original source table. The table also contains all of the columns from the original source table. The table can not contain any columns that start with the DataPropagator column identifier, IBMSNAP or IBMQSQ.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.REFRESH"></a>
<h3>Allow full refresh (REFRESH)</h3>
<p>Determines whether the registration supports the full-refresh capability.
</p>
<p>You can use this value to turn off the capability of the Apply process to perform a full refresh from the source table.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The source table can be used to fully refresh a target table.
</dd>
<dt><b>*NO</b></dt>
<dd>The source table cannot be used to fully refresh a target table.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.TEXT"></a>
<h3>Text 'description' (TEXT)</h3>
<p>The textual description associated with the registration entry.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No description is associated with the entry.
</dd>
<dt><b><i>description</i></b></dt>
<dd>Specify up to 50 characters of text, enclosed in apostrophes.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CAPCOL"></a>
<h3>Capture columns (CAPCOL)</h3>
<p>Specifies the columns for which changes are captured for this registration.
</p>
<dl>
<dt><b><u>*ALL</u></b></dt>
<dd>Changes are captured for all columns.
</dd>
<dt><b>*NONE</b></dt>
<dd>Changes are not captured for this table. Use this value to specify that you do not want change capture activities performed on the registration, and want the table registered for full refresh only. The Change Data (CD) table is not created with this registration, and the Capture process will not capture changes for the table.
</dd>
<dt><b><i>column-name</i></b></dt>
<dd>Specifies up to 300 columns for which changes are captured.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CAPRRN"></a>
<h3>Capture relative record number (CAPRRN)</h3>
<p>Specifies whether the relative record number of each changed record is captured.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>The relative record number is not captured.
</dd>
<dt><b>*YES</b></dt>
<dd>The relative record number is captured. An additional column called IBMQSQ_RRN is created in the Change Data (CD) table.
<p>If SRCTYPE(*USERTABLE) is specified, the IBMQSQ_RRN column must not exist in the source table. During capture activity, the IBMQSQ_RRN column is updated with the relative record number of each changed source table record.
</p>
<p>If SRCTYPE(*USERTABLE) is not specified, the IBMQSQ_RRN column must be present in the source table. During capture activity, the IBMQSQ_RRN column in the CD table is updated using the value from the IBMQSQ_RRN column in the source table.
</p>
<p>If SRCTYPE(*REPLICA) is specified, the CAPRRN parameter needs to be set to *NO.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.IMAGE"></a>
<h3>Record images (IMAGE)</h3>
<p>Specifies whether the Change Data table contains both before and after images of the changes to the source table. This applies globally to all columns specified on the Capture columns (CAPCOL) parameter. The source table must be journaled with *BOTH images even if you specify *AFTER on this parameter.
</p>
<p>This value is not valid when CAPCOL(*NONE) is specified.
</p>
<dl>
<dt><b><u>*AFTER</u></b></dt>
<dd>Only after-images of the source table are kept in the Change Data table.
</dd>
<dt><b>*BOTH</b></dt>
<dd>Both before- and after-images of the source table are kept in the Change Data table.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.PREFIX"></a>
<h3>Prefix character (PREFIX)</h3>
<p>Use the prefix character to make the column names in the Change Data table unique when capturing before-images of the source table. This name can be used in the COLUMN parameter of the ADDDPRSUB or ADDDPRSUBM commands.
</p>
<dl>
<dt><b><u>*DEFAULT</u></b></dt>
<dd>No prefix is specified. The default prefix (@) is used.
</dd>
<dt><b>*NULL</b></dt>
<dd>When a null prefix is specified, the before-images from the source table will never be captured.
</dd>
<dt><b>character</b></dt>
<dd>Any alphabetic character that is valid in an object name.
<p>If the prefix character causes a before-image column name to be the same as an existing after-image column name, the command will terminate with an error.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CONDENSED"></a>
<h3>Condensed (CONDENSED)</h3>
<p>Specifies whether or not the source table is condensed. This means that the table contains current data and there is no more than one row for each primary key value in the table.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The source table is condensed and contains only one row for each primary key value.
</dd>
<dt><b>*NO</b></dt>
<dd>The source table is not condensed and contains multiple rows for each primary key value.
</dd>
<dt><b>*AGGREGATE</b></dt>
<dd>The source table type is either *BASEAGR (base aggregate) or *CHANGEAGR (change aggregate). If this value is used, the COMPLETE parameter must be set to *NO.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.COMPLETE"></a>
<h3>Complete (COMPLETE)</h3>
<p>Specifies whether or not the source table is complete. This means that the table contains a row for every primary key value.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>The source table is complete and contains a row for each primary key value.
</dd>
<dt><b>*NO</b></dt>
<dd>The source table is not complete and does not contain a row for each primary key value.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.FROMGUI"></a>
<h3>Command from GUI (FROMGUI)</h3>
<p>Parameter used by the Replication Center Graphical User Interface.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.SQLFILE"></a>
<h3>SQL output file (SQLFILE)</h3>
<p>Parameter used by the Replication Center Graphical User Interface.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.MSGFILE"></a>
<h3>Message output file (MSGFILE)</h3>
<p>Parameter used by the Replication Center Graphical User Interface.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.SRCTBLRDB"></a>
<h3>Source table RDB (SRCTBLRDB)</h3>
<p>Specifies the name of the relational database in which the source table resides. By specifying a remote relational database name, you are setting up a registration to a source table that uses remote journaling.
</p>
<p>You can use remote journaling in conjunction with the Capture process to limit the system usage on the system where the source table resides. You do this by registering the source table (and running the ADDDPRREG command) on the system to which the source table is remote journaled.
</p>
<p>In other words, if the source table is on the system from which you run this command, and the changes are journaled to a table on this system as well, you are not using remote journaling. If the source table is on a system other than the system from which you run this command, and the changes are journaled to this local system, you are using remote journaling.
</p>
<dl>
<dt><b><u>*LOCAL</u></b></dt>
<dd>The source table is located on this system.
</dd>
<dt><b><i>relational-database-name</i></b></dt>
<dd>Specifies the name of the relational database (RDB) where the source table is located. The specified RDB must be for a system running iSeries Version 4 Release 2 or later.
<p>If you are using remote journaling for this source table, specify the name of the RDB on the system where the source table is located.
</p>
<p>If you are not using remote journaling for this registration, specify the name of the local RDB, or leave it at the default value of *LOCAL.
</p>
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.RMTJRN"></a>
<h3>Remote journal (RMTJRN)</h3>
<p>If the source table is remote (that is, the source table is set up to be remotely journaled to this system), specify the name of the journal on this system that the changes to the remote source table are directed to.
</p>
<p>If you are not using remote journaling, you must specify *SRCTBL.
</p>
<dl>
<dt><b><u>*SRCTBL</u></b></dt>
<dd>The name of the journal is the same as the local journal that is associated with the source table. You must use this value if the source table is local (that is, the value of the SRCTBLRDB parameter is *LOCAL).
</dd>
<dt><b><i>library-name/journal-name</i></b></dt>
<dd>Specifies the qualified name of the journal on this system that is used for journaling the remote source table. The library name does not need to be the same as the library where the source table journal resides. However, the journal name must be either *SRCTBL or the same as the source table's journal name.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.CONFLICT"></a>
<h3>Conflict level (CONFLICT)</h3>
<p>Specifies the level of conflict detection that is done during a update anywhere subscription.
</p>
<dl>
<dt><b><u>*NONE</u></b></dt>
<dd>No conflict detection is done. This is the value needed for all tables that will not be using update anywhere.
</dd>
<dt><b>*STANDARD</b></dt>
<dd>Moderate conflict detection in which the Apply program searches rows already captured in the replicas change data tables for conflicts.
</dd>
<dt><b>*ENHANCED</b></dt>
<dd>Conflict detection that provides the best data integrity among all replicas and source tables
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.UPDDELINS"></a>
<h3>Update using delete/insert (UPDDELINS)</h3>
<p>Determines how updated data is handled. Data that is inserted into or deleted from the source table is not affected by this parameter. Specify UPDDELINS(*YES) when the key fields for the target table are being changed by the application.
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Updates made to the source table are staged to the Change Data table. The changes are applied as updates
</dd>
<dt><b>*YES</b></dt>
<dd>Updates made to the source table are captured as delete and insert pairs. Apply then deletes the existing row and inserts a new row.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.GENCDROW"></a>
<h3>Generate change data rows (GENCDROW)</h3>
<p>Specifies what changes from the journals should be copied into the Change Data table.
</p>
<dl>
<dt><b><u>*ALLCHG</u></b></dt>
<dd>All insert, update, and delete records from the source table's journal are copied into the Change Data table.
</dd>
<dt><b>*REGCOLCHG</b></dt>
<dd>Copy journal entries where registered columns have changed. If the changes are to columns that are not in the Change Data table, these changes will not be captured.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.RECAP"></a>
<h3>Recapture changes (RECAP)</h3>
<p>Specifies whether or not changes made to a table by Apply are re-captured by Capture.
</p>
<dl>
<dt><b><u>*YES</u></b></dt>
<dd>Changes made to the source table by Apply are Captured and appear in the Change Data table.
</dd>
<dt><b>*NO</b></dt>
<dd>Changes made to the source table by Apply are not Captured and do not appear in the Change Data table.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="ADDDPRREG.STOPONERR"></a>
<h3>Stop on error (STOPONERR)</h3>
<p>Specifies whether or not Capture will stop when an error is encountered
</p>
<dl>
<dt><b><u>*NO</u></b></dt>
<dd>Capture will continue processing after issuing error messages and deactivating the registration which caused the error.
</dd>
<dt><b>*YES</b></dt>
<dd>Capture will issue an error message and completely stop processing when an error is encountered.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="ADDDPRREG.COMMAND.EXAMPLES">Examples</a></h3>None
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="ADDDPRREG.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>ASN2051</b></dt>
<dd>Not authorized to Registration Extension table.
</dd>
<dt><b>ASN2501</b></dt>
<dd>Not authorized to register table.
</dd>
<dt><b>ASN3020</b></dt>
<dd>Registration for source table completed.
</dd>
<dt><b>ASN3027</b></dt>
<dd>Table not journaled with *BOTH images.
</dd>
<dt><b>ASN3036</b></dt>
<dd>Column not found.
</dd>
<dt><b>ASN3055</b></dt>
<dd>Cannot capture changes for table .
</dd>
<dt><b>ASN3069</b></dt>
<dd>Relative record numbers cannot be captured.
</dd>
<dt><b>ASN3075</b></dt>
<dd>Relative record numbers cannot be captured for an aggregate source table.
</dd>
<dt><b>ASN3115</b></dt>
<dd>Relational database is not DB2/400 V4R2 or greater.
</dd>
<dt><b>ASN3116</b></dt>
<dd>Remote journal in library is not found.
</dd>
<dt><b>ASN3121</b></dt>
<dd>The source table journal does not match the data from the RMTJRN parameter.
</dd>
<dt><b>ASN3122</b></dt>
<dd>The SRCTBLRDB parameter cannot specify a remote souce table that is a logical file.
</dd>
<dt><b>ASN3125</b></dt>
<dd>Local relational database is not DB2/400 V4R2 or greater.
</dd>
<dt><b>ASN3213</b></dt>
<dd>Base attributes not valid for base type.
</dd>
<dt><b>ASN3217</b></dt>
<dd>CAPRRN(*YES) not valid with aggregate base type. A value of *YES on the CAPRRN parameter is not valid
</dd>
<dt><b>ASN3219</b></dt>
<dd>You must specify *NO on the CAPRRN parameter when the CAPCOL parameter has a value of *NONE.
</dd>
<dt><b>ASN3230</b></dt>
<dd>A Remote Journal Name cannot be specified if the Source Table RDB is *LOCAL.
</dd>
<dt><b>ASN3238</b></dt>
<dd>The source table does not contain the correct columns for a source type.
</dd>
<dt><b>ASN3249</b></dt>
<dd>Relative record number column IBMQSQ_RRN is not available.
</dd>
<dt><b>ASN3254</b></dt>
<dd>Registration already exists for table .
</dd>
<dt><b>ASN3279</b></dt>
<dd>View table has more columns than subselect string.
</dd>
<dt><b>ASN3280</b></dt>
<dd>View subselect string missing correlation name.
</dd>
<dt><b>ASN3281</b></dt>
<dd>View subselect string missing file name.
</dd>
<dt><b>ASN3284</b></dt>
<dd>SQLFILE must not be *NONE when FROMGUI is *YES.
</dd>
<dt><b>ASN3285</b></dt>
<dd>MSGFILE must not be *NONE when FROMGUI is *YES.
</dd>
<dt><b>ASN3286</b></dt>
<dd>SQLFILE and MSGFILE names are the same.
</dd>
<dt><b>ASN3292</b></dt>
<dd>Register table not found.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#ADDDPRREG.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>