<?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: Merging rows by ID which isn't unique in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302079#M60670</link>
    <description>&lt;P&gt;What about update?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure it would keep the correct amount of,records though, you may need to add a counter to uniquely identify iterations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;update have(obs=0) have;&lt;/P&gt;
&lt;P&gt;by id counter;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id counter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 1&lt;/P&gt;
&lt;P&gt;1 2&lt;/P&gt;
&lt;P&gt;1 3&lt;/P&gt;
&lt;P&gt;1 1&lt;/P&gt;
&lt;P&gt;1 2&lt;/P&gt;
&lt;P&gt;1 3&lt;/P&gt;
&lt;P&gt;2 1&lt;/P&gt;
&lt;P&gt;2 1&lt;/P&gt;
&lt;P&gt;...etc&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 14:56:10 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-10-03T14:56:10Z</dc:date>
    <item>
      <title>Merging rows by ID which isn't unique</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302077#M60669</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;I have a following problem. What I have right now:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 216pt;" border="0" width="288" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 54pt;" span="4" width="72" /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="72" height="20" class="xl65" style="height: 15.0pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;V1&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;V2&lt;/TD&gt;
&lt;TD width="72" class="xl67" style="border-left: none; width: 54pt;"&gt;V3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl64" style="height: 14.25pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl64" style="border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl64" style="border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl64" style="border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl63" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;What I would like to get:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 216pt;" border="0" width="288" cellspacing="0" cellpadding="0"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 54pt;" span="4" width="72" /&gt; &lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="72" height="20" class="xl67" style="height: 15.0pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" class="xl68" style="border-left: none; width: 54pt;"&gt;V1&lt;/TD&gt;
&lt;TD width="72" class="xl68" style="border-left: none; width: 54pt;"&gt;V2&lt;/TD&gt;
&lt;TD width="72" class="xl69" style="border-left: none; width: 54pt;"&gt;V3&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl66" style="height: 14.25pt;"&gt;1&lt;/TD&gt;
&lt;TD class="xl66" style="border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl66" style="border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl66" style="border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;2&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;3&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.25pt;"&gt;
&lt;TD height="19" align="right" class="xl65" style="height: 14.25pt; border-top: none;"&gt;4&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd be grateful!&lt;BR /&gt;&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302077#M60669</guid>
      <dc:creator>Dontik</dc:creator>
      <dc:date>2016-10-03T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Merging rows by ID which isn't unique</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302079#M60670</link>
      <description>&lt;P&gt;What about update?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure it would keep the correct amount of,records though, you may need to add a counter to uniquely identify iterations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data want;&lt;/P&gt;
&lt;P&gt;update have(obs=0) have;&lt;/P&gt;
&lt;P&gt;by id counter;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id counter&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 1&lt;/P&gt;
&lt;P&gt;1 2&lt;/P&gt;
&lt;P&gt;1 3&lt;/P&gt;
&lt;P&gt;1 1&lt;/P&gt;
&lt;P&gt;1 2&lt;/P&gt;
&lt;P&gt;1 3&lt;/P&gt;
&lt;P&gt;2 1&lt;/P&gt;
&lt;P&gt;2 1&lt;/P&gt;
&lt;P&gt;...etc&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302079#M60670</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-03T14:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Merging rows by ID which isn't unique</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302080#M60671</link>
      <description>&lt;P&gt;The question is, why do you have data like that, it looks to me like some step previous to this is the real cause of the issue. &amp;nbsp;Fixing the data before you get into this position would be my suggestion.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302080#M60671</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-03T15:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging rows by ID which isn't unique</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302086#M60672</link>
      <description>&lt;P&gt;Here's an approach that would work for numeric variables V1, V2, and V3:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;merge have (where=(v1 &amp;gt; .)) have (where=(v2 &amp;gt; .)) have (where=(v3 &amp;gt; .));&lt;/P&gt;
&lt;P&gt;by id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If any of these variables are character instead, you would have to change the corresponding WHERE condition (switch from &amp;gt; . to &amp;gt; ' ').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will still get a message about a many-to-many match, but the results will be OK.&amp;nbsp; ("OK" might be open to interpretation if you have differing numbers of values, like 3 observations with a V1 value for an ID, but only 2 observations with a V2 value.)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 15:28:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302086#M60672</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-03T15:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Merging rows by ID which isn't unique</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302090#M60673</link>
      <description>Another fix could be using SQL GROUP BY and max().</description>
      <pubDate>Mon, 03 Oct 2016 15:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-rows-by-ID-which-isn-t-unique/m-p/302090#M60673</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-03T15:49:22Z</dc:date>
    </item>
  </channel>
</rss>

