<?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: Find duplicated values in SAS EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875465#M42946</link>
    <description>&lt;P&gt;I think so, I don't have access to EG right now so I can't verify.&lt;/P&gt;
&lt;P&gt;But you should end up in a SQL similar to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   select cin, yy, mm
   from have
   group by cin, yy
   having count(*) &amp;gt; 1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 May 2023 13:42:35 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2023-05-12T13:42:35Z</dc:date>
    <item>
      <title>Find duplicated values in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875112#M42917</link>
      <description>&lt;P&gt;Is there a way in SAS EG to find duplicated values? Must have duplicated rows in CIN and YY columns but have distinct MM. And I need all three columns in the output. Example data below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ralizadeh_2-1683760988545.png" style="width: 744px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83851i5AA48BCCC35617CC/image-dimensions/744x212?v=v2" width="744" height="212" role="button" title="ralizadeh_2-1683760988545.png" alt="ralizadeh_2-1683760988545.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 23:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875112#M42917</guid>
      <dc:creator>ralizadeh</dc:creator>
      <dc:date>2023-05-10T23:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicated values in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875153#M42926</link>
      <description>&lt;P&gt;If you want to this using UI rather than direct programming, try Query Builder, by defining CIN and YY as grouping variables, and with a having filter on count(*) &amp;gt; 1.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875153#M42926</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-05-11T08:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicated values in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875326#M42937</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt;. Just to confirm, did you mean that I should add CIN, YY, MM to the Select Data (columns) in the Query Builder, then use COUNT as a summary function for MM. Then add CIN, YY to the Group By. Add Count(*) &amp;gt;1 to HAVING clause under Filter tab?&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 18:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875326#M42937</guid>
      <dc:creator>ralizadeh</dc:creator>
      <dc:date>2023-05-11T18:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicated values in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875465#M42946</link>
      <description>&lt;P&gt;I think so, I don't have access to EG right now so I can't verify.&lt;/P&gt;
&lt;P&gt;But you should end up in a SQL similar to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
   select cin, yy, mm
   from have
   group by cin, yy
   having count(*) &amp;gt; 1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 May 2023 13:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875465#M42946</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2023-05-12T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find duplicated values in SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875542#M42947</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH&lt;/a&gt; &lt;SPAN&gt;While my original goal was to identify the duplicate row values, your suggestion proved to be valuable in a broader sense. It allowed me to at least determine the count of rows with duplicate values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 22:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-duplicated-values-in-SAS-EG/m-p/875542#M42947</guid>
      <dc:creator>ralizadeh</dc:creator>
      <dc:date>2023-05-12T22:40:21Z</dc:date>
    </item>
  </channel>
</rss>

