<?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: Repeat of BY values -- why? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16565#M2316</link>
    <description>NODUPS means the entire record is a duplicate NODUPKEY would rid you of duplicate BY values.</description>
    <pubDate>Fri, 13 Nov 2009 15:21:04 GMT</pubDate>
    <dc:creator>Flip</dc:creator>
    <dc:date>2009-11-13T15:21:04Z</dc:date>
    <item>
      <title>Repeat of BY values -- why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16564#M2315</link>
      <description>Code:&lt;BR /&gt;
PROC SORT DATA=ND NODUPS;&lt;BR /&gt;
  BY ITEM;&lt;BR /&gt;
  RUN;&lt;BR /&gt;
PROC SORT DATA=DUPS;&lt;BR /&gt;
  BY ITEM;&lt;BR /&gt;
  RUN;&lt;BR /&gt;
DATA COMBINE;&lt;BR /&gt;
  MERGE DUPS(IN=OK1) ND(IN=OK2);&lt;BR /&gt;
  BY ITEM;&lt;BR /&gt;
  IF OK1;&lt;BR /&gt;
&lt;BR /&gt;
The 'ND' dataset should not have any duplicate rcds (log shows several were deleted). So why is log showing: "Note: MERGE statement has more than one data set with repeats of BY values."  ???</description>
      <pubDate>Fri, 13 Nov 2009 15:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16564#M2315</guid>
      <dc:creator>joegee</dc:creator>
      <dc:date>2009-11-13T15:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat of BY values -- why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16565#M2316</link>
      <description>NODUPS means the entire record is a duplicate NODUPKEY would rid you of duplicate BY values.</description>
      <pubDate>Fri, 13 Nov 2009 15:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16565#M2316</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-11-13T15:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat of BY values -- why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16566#M2317</link>
      <description>DUH - I should know that!  Thanks you have turned this Fri 13 into my lucky day...</description>
      <pubDate>Fri, 13 Nov 2009 15:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16566#M2317</guid>
      <dc:creator>joegee</dc:creator>
      <dc:date>2009-11-13T15:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat of BY values -- why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16567#M2318</link>
      <description>Also, consider that in some instances (your input file determined) you must have a sufficient BY variable list to ensure that duplicate observations are sorted to be adjacent, otherwise the duplicates will not be deleted, with NODUPS.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 13 Nov 2009 15:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16567#M2318</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-11-13T15:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Repeat of BY values -- why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16568#M2319</link>
      <description>check the lengths of the column/variable ITEM in each of your data sets&lt;BR /&gt;
&lt;BR /&gt;
2541 - Multiple lengths were specified for the BY variable xxxx by input data sets&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/2/541.html" target="_blank"&gt;http://support.sas.com/kb/2/541.html&lt;/A&gt; &lt;BR /&gt;
SUGI 28: Danger: MERGE Ahead! Warning: BY Variable with Multiple Lengths!&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/098-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/098-28.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 13 Nov 2009 15:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeat-of-BY-values-why/m-p/16568#M2319</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-11-13T15:28:49Z</dc:date>
    </item>
  </channel>
</rss>

