<?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 No of duplicate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/No-of-duplicate/m-p/895926#M353981</link>
    <description>If i have a table with 10 columns, an entry is a duplicate if except the first two variables, the rest variable have the same input&lt;BR /&gt;How to write a program to identify the no of duplicates in this table</description>
    <pubDate>Tue, 26 Sep 2023 17:02:58 GMT</pubDate>
    <dc:creator>HeatherNewton</dc:creator>
    <dc:date>2023-09-26T17:02:58Z</dc:date>
    <item>
      <title>No of duplicate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-of-duplicate/m-p/895926#M353981</link>
      <description>If i have a table with 10 columns, an entry is a duplicate if except the first two variables, the rest variable have the same input&lt;BR /&gt;How to write a program to identify the no of duplicates in this table</description>
      <pubDate>Tue, 26 Sep 2023 17:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-of-duplicate/m-p/895926#M353981</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-09-26T17:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: No of duplicate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/No-of-duplicate/m-p/895935#M353986</link>
      <description>&lt;P&gt;You have not bothered to describe the data at all. How many of those columns are numeric ? How many are character?&lt;/P&gt;
&lt;P&gt;How do you want to describe "duplicate"? Add a variable to the data? If so, what values should it take?&lt;/P&gt;
&lt;P&gt;Or subset the data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the values of variables are all numeric then the RANGE function MIGHT be the easiest approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data junk;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; array v(*) &amp;lt;your variables go here&amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; if range(of v(*))=0 then &amp;lt;do whatever you want when all the same&amp;gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;However, if you have mixes of missing values and actual values that&amp;nbsp; would require adding a check that the nonmissing values equal the number of variables (i.e. the N function).&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 18:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/No-of-duplicate/m-p/895935#M353986</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-09-26T18:01:17Z</dc:date>
    </item>
  </channel>
</rss>

