<?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 Re: Clustering in Data Management Studio in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/260884#M7154</link>
    <description>&lt;P&gt;Hi Helle,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can use the ID&amp;nbsp;to identify the rows/values you want to compare, you can:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sort by the ID&lt;/LI&gt;
&lt;LI&gt;Use the expression node to group by that ID&lt;/LI&gt;
&lt;LI&gt;Start with the first description value you encounter for that group&lt;/LI&gt;
&lt;LI&gt;Then compare that value to subsequent description values in the group using the edit distance function&lt;/LI&gt;
&lt;LI&gt;Use the pushrow function to create a new row to flag that group for review. Set the option to flag the row as "pushed"&lt;/LI&gt;
&lt;LI&gt;Reset the initial value in between groups to start the comparison anew for each group&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you then use a branch node with some filter nodes on each branch, you can capture the IDs for groups with some issues to review (filter to only keep pushed rows), and join back to the other side of the branch to limit the results to just groups with differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the ID can't be used to create groups, use a match code on the description value and then use a cluster node to group possible similar records, sorting after the cluster operation. Then follow the steps above but use the cluster ID instead of the ID value for groups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
    <pubDate>Sat, 02 Apr 2016 12:31:43 GMT</pubDate>
    <dc:creator>RonAgresta</dc:creator>
    <dc:date>2016-04-02T12:31:43Z</dc:date>
    <item>
      <title>Clustering in Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/260632#M7113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to compare lists of values which originate from different tables. The format is typically like this:&lt;/P&gt;
&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table_Name&lt;/P&gt;
&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Table_A&lt;/P&gt;
&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Testing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Table_B&lt;/P&gt;
&lt;P&gt;ABC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TEsting&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table_C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In most cases, the descriptions are exactly the same but sometimes there is a small difference (like in Table_C above). I would like to extract a list of those rows that have the same ID but different descriptions. I assume that I can use the clustering functionality in Data Management Studio but I am not quite sure how. Does anyone have a suggestion? I have attached a small data job with some sample data (DM Studio 2.6). I only have access to DM Studio so I cannot make use of SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, Helle&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 08:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/260632#M7113</guid>
      <dc:creator>Helle</dc:creator>
      <dc:date>2016-04-01T08:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering in Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/260884#M7154</link>
      <description>&lt;P&gt;Hi Helle,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can use the ID&amp;nbsp;to identify the rows/values you want to compare, you can:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sort by the ID&lt;/LI&gt;
&lt;LI&gt;Use the expression node to group by that ID&lt;/LI&gt;
&lt;LI&gt;Start with the first description value you encounter for that group&lt;/LI&gt;
&lt;LI&gt;Then compare that value to subsequent description values in the group using the edit distance function&lt;/LI&gt;
&lt;LI&gt;Use the pushrow function to create a new row to flag that group for review. Set the option to flag the row as "pushed"&lt;/LI&gt;
&lt;LI&gt;Reset the initial value in between groups to start the comparison anew for each group&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you then use a branch node with some filter nodes on each branch, you can capture the IDs for groups with some issues to review (filter to only keep pushed rows), and join back to the other side of the branch to limit the results to just groups with differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the ID can't be used to create groups, use a match code on the description value and then use a cluster node to group possible similar records, sorting after the cluster operation. Then follow the steps above but use the cluster ID instead of the ID value for groups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2016 12:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/260884#M7154</guid>
      <dc:creator>RonAgresta</dc:creator>
      <dc:date>2016-04-02T12:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Clustering in Data Management Studio</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/266700#M7373</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply. Unfortunately, I lack the EEL skills to be able to follow your instructions. It would be great if you could provide me with an example of how to code the steps starting with "Start with the first description value.." and ending with "Reset the initial value...".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Helle&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 13:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Clustering-in-Data-Management-Studio/m-p/266700#M7373</guid>
      <dc:creator>Helle</dc:creator>
      <dc:date>2016-04-27T13:22:50Z</dc:date>
    </item>
  </channel>
</rss>

