<?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: Creating unique ID for people with multiple entries, but sequential between people in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456925#M14120</link>
    <description>&lt;P&gt;If you are starting with Old_ClientID and want to get NewID, you can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by Old_ClientID notsorted;&lt;/P&gt;
&lt;P&gt;if first.Old_ClientID then NewID + 1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's important that the incoming data is grouped properly.&amp;nbsp; For example, all the "564" values have to appear consecutively within the incoming data.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2018 15:38:30 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-04-24T15:38:30Z</dc:date>
    <item>
      <title>Creating unique ID for people with multiple entries, but sequential between people</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456913#M14117</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for&amp;nbsp;a way to create a unique Identifier that will account for duplicates of a client based on an old client ID.&amp;nbsp; Please see below.&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;I tried a do loop but it just hung up on me.&amp;nbsp; Does&amp;nbsp;anyone know code for this.&amp;nbsp;Thanks.&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;Old _ClientID&amp;nbsp;&amp;nbsp; &amp;nbsp;NewID&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;564&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;564&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;345&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;367&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;321&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;111&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;111&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P class="yiv1840398343MsoNormal"&gt;111&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456913#M14117</guid>
      <dc:creator>Salsalvr</dc:creator>
      <dc:date>2018-04-24T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating unique ID for people with multiple entries, but sequential between people</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456925#M14120</link>
      <description>&lt;P&gt;If you are starting with Old_ClientID and want to get NewID, you can use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by Old_ClientID notsorted;&lt;/P&gt;
&lt;P&gt;if first.Old_ClientID then NewID + 1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's important that the incoming data is grouped properly.&amp;nbsp; For example, all the "564" values have to appear consecutively within the incoming data.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 15:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456925#M14120</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-24T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating unique ID for people with multiple entries, but sequential between people</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456954#M14121</link>
      <description>Thank you so much. That worked perfectly.&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Apr 2018 16:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/456954#M14121</guid>
      <dc:creator>Salsalvr</dc:creator>
      <dc:date>2018-04-24T16:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating unique ID for people with multiple entries, but sequential between people</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/457369#M14151</link>
      <description>&lt;P&gt;&amp;nbsp;way to do this&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as 
select Old_ClientID , 
	   (select count(distinct Old_ClientID) from 
	   have b
where  a.Old_ClientID &amp;lt;= b.Old_ClientID) as newid 
from have a
order by newid;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Creating-unique-ID-for-people-with-multiple-entries-but/m-p/457369#M14151</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-04-25T15:42:52Z</dc:date>
    </item>
  </channel>
</rss>

