<?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: Combine records in the same dataset. in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399689#M3541</link>
    <description>&lt;P&gt;By what rule do you know they are from the same id?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the number of records per policy vary?&amp;nbsp;&amp;nbsp; Or is it always 2?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Sep 2017 03:35:51 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2017-09-29T03:35:51Z</dc:date>
    <item>
      <title>Combine records in the same dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399683#M3539</link>
      <description>&lt;P&gt;Hi, I am looking for a way to combine 2 records in a single dataset.&lt;BR /&gt;These 2 records have duplicate IDs but i can't figure out how to make them into a single row.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15492iEFE5B676E496FE3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I am hoping to make them into something like this;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;POLICYID&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; RIDER_LISTS&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; I100786-4599318572&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RTWMR4,RTWWP1,RTWMR2,RTWHB1&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 02:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399683#M3539</guid>
      <dc:creator>Wken1122</dc:creator>
      <dc:date>2017-09-29T02:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Combine records in the same dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399689#M3541</link>
      <description>&lt;P&gt;By what rule do you know they are from the same id?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does the number of records per policy vary?&amp;nbsp;&amp;nbsp; Or is it always 2?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 03:35:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399689#M3541</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-09-29T03:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Combine records in the same dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399690#M3542</link>
      <description>&lt;P&gt;Here is an example&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id $ list $;
datalines;
123 ab,cd
123 ef,ghj
012 abcd
;

data want;
length newList $200; /* Make new list large enough to hold the longer lists */
retain newList;
set have;
by id notsorted;
if first.id then newList = list;
else newList = catx(",", newList, list);
if last.id then output;
rename newList=list;
drop list;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Sep 2017 03:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399690#M3542</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-29T03:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Combine records in the same dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399691#M3543</link>
      <description>&lt;P&gt;From the excel tables. But unsure why it became null..&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 03:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Combine-records-in-the-same-dataset/m-p/399691#M3543</guid>
      <dc:creator>Wken1122</dc:creator>
      <dc:date>2017-09-29T03:48:50Z</dc:date>
    </item>
  </channel>
</rss>

