<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.8.4 (http://www.squarespace.com/) on Mon, 07 Dec 2009 02:32:53 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Technical Stuff</title><link>http://samuelselvan.squarespace.com/technical-stuff/</link><description></description><lastBuildDate>Thu, 11 Oct 2007 04:16:53 +0000</lastBuildDate><copyright></copyright><language>en-US</language><generator>Squarespace Site Server v5.8.4 (http://www.squarespace.com/)</generator><item><title>The DB2 LOAD process</title><category>DB2</category><dc:creator>Samuel Selvan</dc:creator><pubDate>Fri, 02 Mar 2007 06:37:50 +0000</pubDate><link>http://samuelselvan.squarespace.com/technical-stuff/2007/3/2/the-db2-load-process.html</link><guid isPermaLink="false">11886:1156832:939762</guid><description><![CDATA[<p align="justify" style="text-align: justify;">During the load phase , the load utility scans the input file for any invalid data rows that do not comply with the table definition; for example, if a table column is defined as INTEGER but the input data is stored as &quot;abcd&quot;. Invalid data will not be loaded into the table. The rejected rows and warnings will be written to a dump file specified by the <tt> dumpfile </tt> modifier. Valid data is then written into the table. At the same time, table statistics (if the <tt> statistics </tt> option was specified) and index keys are also collected. If the <tt> savecount </tt> option is specified <a name="ch12index182"></a><a name="ch12index183"></a><a name="ch12index184"></a><a name="ch12index185"></a><a name="ch12index186"></a>in the <tt> load </tt> command, points of consistency are recorded in the message file. Consistency points are established by the load utility. They are very useful when it comes to restarting the load operation. You can restart the load from the last successful consistency point.</p><div align="justify" style="text-align: justify;"> </div><p align="justify" style="text-align: justify;">During the build phase , indexes are produced based on the index keys collected during the load phase. The index keys are sorted during the load phase, and index statistics are collected (if the <tt> statistic </tt> option was specified).</p><div align="justify" style="text-align: justify;"> </div><p align="justify" style="text-align: justify;">In the load phase , the utility only rejects rows that do not comply with the column definitions. Rows that violated any unique constraint will be deleted in the delete phase. Note that only unique constraint violated rows are deleted. Other constraints are not checked during this phase or during any load phase. You have to manually check it after the load operation is complete. Refer to <a href="javascript:moveTo('ch12lev2sec26');">Section 12.5.7</a>, Validating Data Against Constraints, for more information.</p><div align="justify" style="text-align: justify;"> </div><p align="justify" style="text-align: justify;">During the index copy phase , index data is copied from a system temporary table space to the original table space. This will only occur if a system temporary table space was specified for index creation during a load operation with the <tt> read access </tt> option specified (see <a href="javascript:moveTo('ch12lev3sec10');">section 12.5.2.5</a>, Locking Considerations During a Load).</p><p align="justify" style="text-align: justify;"><a class="offsite-link-inline" target="_blank" href="http://safari.oreilly.com/0131859161/ch12lev1sec5">The Link&nbsp;</a></p>

<script type="text/javascript"><!--
google_ad_client = "pub-2600493287279577";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
google_ad_channel = "";
google_color_border = "444411";
google_color_bg = "DDDDAA";
google_color_link = "883300";
google_color_text = "443322";
google_color_url = "CC4400";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>]]></description><wfw:commentRss>http://samuelselvan.squarespace.com/technical-stuff/rss-comments-entry-939762.xml</wfw:commentRss></item><item><title>Load Timestamp data in a flat file source column into a DB2 Timestamp target column</title><category>Informatica</category><dc:creator>Samuel Selvan</dc:creator><pubDate>Fri, 02 Mar 2007 06:31:26 +0000</pubDate><link>http://samuelselvan.squarespace.com/technical-stuff/2007/3/1/load-timestamp-data-in-a-flat-file-source-column-into-a-db2-timestamp-target-column.html</link><guid isPermaLink="false">11886:1156832:939760</guid><description><![CDATA[<p align="justify" style="text-align: justify;">&nbsp;Being in IT and all, this is a new journal, where I post (collect) information that pertains to stuff I find useful at work. <br /></p><p align="justify" style="text-align: justify;"><strong> Load Timestamp data in a flat file source column into a DB2 Timestamp target column</strong></p><p align="justify" style="text-align: justify;">To load data in a flat file into a DB2 target&nbsp;Timestamp column do the following:</p><div align="justify" style="text-align: justify;"><ol><li>Set the datatype of the column&nbsp;in the Source Definition as String with a precision of 26.</li><li>Set the datatype of the target column in the DB2 database table to Timestamp.</li><li>Set the datatype of this column in the Target Definition to be Char with a precision of 26. <h6>Note:</h6><p>This is datatype setting is only used within the PowerCenter Designer.DB2 can implicitly convert from character datatype to Timestamp datatype.</p><p>&nbsp;</p><p><strong>The implicit conversion in DB2 requires that the string passed by the PowerCenter session must be in the exact format required by the Timestamp column as specified in the territory and codepage used to create the database.</strong></p><p><strong>To determine the format, execute the following command on the DB2 Command Line window:</strong></p><p><strong><code>VALUES current timestamp</code></strong></p><p><strong>Here is an example of the output:</strong></p><p align="justify" style="text-align: justify;"><strong><samp>yyyy-mm-dd-hh.mi.ss.nnnnnn</samp></strong></p></li></ol></div>]]></description><wfw:commentRss>http://samuelselvan.squarespace.com/technical-stuff/rss-comments-entry-939760.xml</wfw:commentRss></item></channel></rss>