<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Data Integration Studio Compare Tables transformation compare columns containing missing values in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/316959#M9101</link>
    <description>&lt;P&gt;I'm comparing 2 tables with the Compare Tables transformation in Data Integration Studio.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;source table ia a SQL Server table. The comparison table is an Oracle table.&lt;/P&gt;&lt;P&gt;The match key is the ID column (primary key in both tables). With this I can find new records to insert.&lt;/P&gt;&lt;P&gt;In the section "Compare columns" I select all other fields to compare. With this I can find changed records that I want to update in the Oracle table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the "Compare columns" always mark ALL RECORDS as changed. I think it's because of null values (=missing values). The comparison sees a null values in the SQL Server table as different from a null value in the Oracle table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a test I have loaded both tables into a physical SAS dataset an compare both SAS datasets. But the result is still: all records differ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to solve the problem of comparing a SQL Server table with an Oracle table containing null values?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2016 08:56:40 GMT</pubDate>
    <dc:creator>dtjon</dc:creator>
    <dc:date>2016-12-06T08:56:40Z</dc:date>
    <item>
      <title>Data Integration Studio Compare Tables transformation compare columns containing missing values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/316959#M9101</link>
      <description>&lt;P&gt;I'm comparing 2 tables with the Compare Tables transformation in Data Integration Studio.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;source table ia a SQL Server table. The comparison table is an Oracle table.&lt;/P&gt;&lt;P&gt;The match key is the ID column (primary key in both tables). With this I can find new records to insert.&lt;/P&gt;&lt;P&gt;In the section "Compare columns" I select all other fields to compare. With this I can find changed records that I want to update in the Oracle table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the "Compare columns" always mark ALL RECORDS as changed. I think it's because of null values (=missing values). The comparison sees a null values in the SQL Server table as different from a null value in the Oracle table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a test I have loaded both tables into a physical SAS dataset an compare both SAS datasets. But the result is still: all records differ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So how to solve the problem of comparing a SQL Server table with an Oracle table containing null values?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 08:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/316959#M9101</guid>
      <dc:creator>dtjon</dc:creator>
      <dc:date>2016-12-06T08:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Integration Studio Compare Tables transformation compare columns containing missing values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/316989#M9102</link>
      <description>&lt;P&gt;I default NULL behaviour is in place, they would be stored as MISSING in SAS. If this is the same from both sources, there is no difference. So it's probably&amp;nbsp;something else that differs/happens. Try the HEX./$HEX. formats to see what is actually in those columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I wonder about the "Compare tables" transformation, I've never used it. If you need to find out what records to update/insert you would be fine&amp;nbsp;with Table Loader or SCD Type 2 Loader transformations.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 11:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/316989#M9102</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-12-06T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Integration Studio Compare Tables transformation compare columns containing missing values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/318254#M9139</link>
      <description>&lt;P&gt;Thanks for your advice Linus.&lt;/P&gt;&lt;P&gt;I compared 1 records between the table in SQL Server and Oracle in HEX./$HEX.&lt;/P&gt;&lt;P&gt;The HEX comparison showed no difference, but the transformation incorrectly marked the record as 'changed'.&lt;/P&gt;&lt;P&gt;Then I excluded the columns containing null values in the comparison.&lt;/P&gt;&lt;P&gt;Still the transformation marked the record incorrectly as changed.&lt;/P&gt;&lt;P&gt;So the null values were not the cause for marking the records as 'changed'.&lt;/P&gt;&lt;P&gt;The next step was debugging by comparing the columns one by one.&lt;/P&gt;&lt;P&gt;The result from debugging was that this comparison is the cause of incorrect marking as 'changed':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Sql Server column WERKVOORRAADSPECIALARRANGEMENTS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; compared&amp;nbsp;with …&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Oracle WERKVRDSPECIALARRANGEMENTS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my EXTRACT transformation I changed target column name WERKVOORRAADSPECIALARRANGEMENTS (31 characters)&amp;nbsp;into WERKVRDSPECIALARRANGEMENTS (26 characters), and ... now the compare mark the record correctly as 'unchanged'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is definately a bug within DI Studio.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 12:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/318254#M9139</guid>
      <dc:creator>dtjon</dc:creator>
      <dc:date>2016-12-12T12:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data Integration Studio Compare Tables transformation compare columns containing missing values</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/318264#M9140</link>
      <description>&lt;P&gt;God that you found the cause.&lt;/P&gt;
&lt;P&gt;If you think it's a bug report&amp;nbsp;it to SAS&amp;nbsp;tech support.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 13:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Data-Integration-Studio-Compare-Tables-transformation-compare/m-p/318264#M9140</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-12-12T13:37:49Z</dc:date>
    </item>
  </channel>
</rss>

