<?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 create unique id for different patients-multiple rows per each in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/303318#M64411</link>
    <description>&lt;P&gt;Hi I have the following dataset were each patients have multiple rows for the same patient. I am trying to change names to an id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Name &amp;nbsp; &amp;nbsp;date drug
jack &amp;nbsp; &amp;nbsp;01/01/2009 a
jack &amp;nbsp; &amp;nbsp;02/02/2010 &amp;nbsp;b
jack &amp;nbsp; 03/03/2001 &amp;nbsp; c
bob &amp;nbsp; 01/01/2001 &amp;nbsp; d
bob &amp;nbsp; 02/02 /2002 &amp;nbsp; e&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want the following output&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Name &amp;nbsp; &amp;nbsp;date drug    id 
jack &amp;nbsp; &amp;nbsp;01/01/2009 a  1 
jack &amp;nbsp; &amp;nbsp;02/02/2010 &amp;nbsp;b  1
jack &amp;nbsp; 03/03/2001 &amp;nbsp; c   1
bob &amp;nbsp; 02/02 /2002 &amp;nbsp; e  2
bob   01/01/2001    d  2&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Oct 2016 22:21:30 GMT</pubDate>
    <dc:creator>lillymaginta</dc:creator>
    <dc:date>2016-10-07T22:21:30Z</dc:date>
    <item>
      <title>create unique id for different patients-multiple rows per each</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/303318#M64411</link>
      <description>&lt;P&gt;Hi I have the following dataset were each patients have multiple rows for the same patient. I am trying to change names to an id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Name &amp;nbsp; &amp;nbsp;date drug
jack &amp;nbsp; &amp;nbsp;01/01/2009 a
jack &amp;nbsp; &amp;nbsp;02/02/2010 &amp;nbsp;b
jack &amp;nbsp; 03/03/2001 &amp;nbsp; c
bob &amp;nbsp; 01/01/2001 &amp;nbsp; d
bob &amp;nbsp; 02/02 /2002 &amp;nbsp; e&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I want the following output&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Name &amp;nbsp; &amp;nbsp;date drug    id 
jack &amp;nbsp; &amp;nbsp;01/01/2009 a  1 
jack &amp;nbsp; &amp;nbsp;02/02/2010 &amp;nbsp;b  1
jack &amp;nbsp; 03/03/2001 &amp;nbsp; c   1
bob &amp;nbsp; 02/02 /2002 &amp;nbsp; e  2
bob   01/01/2001    d  2&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/303318#M64411</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-10-07T22:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: create unique id for different patients-multiple rows per each</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/303322#M64413</link>
      <description>&lt;P&gt;Simple, if your data is sorted by name:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have; by name;
id + first.name;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/303322#M64413</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-10-07T22:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: create unique id for different patients-multiple rows per each</title>
      <link>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/304093#M64688</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/create-unique-id-for-different-patients-multiple-rows-per-each/m-p/304093#M64688</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-10-12T14:36:49Z</dc:date>
    </item>
  </channel>
</rss>

