<?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 Creating a Unique Identifier using Name, DOB, and Gender in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565578#M11210</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a unique identifier using parts of first and last name, DOB and Gender.&amp;nbsp; I want the first 2 letters of the first_name &amp;amp; the first 2 letters of the last_name &amp;amp; last 2 letters of the last_name &amp;amp; DOB with no slashes &amp;amp; Gender as either M or F.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;First_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DOB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gender&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID_number&lt;/P&gt;&lt;P&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Smith&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/02/1995&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JOSMTH01021995M&lt;/P&gt;&lt;P&gt;Mary&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jackson&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03/15/1975&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAJAON03151975F&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 15:00:20 GMT</pubDate>
    <dc:creator>suzannep</dc:creator>
    <dc:date>2019-06-12T15:00:20Z</dc:date>
    <item>
      <title>Creating a Unique Identifier using Name, DOB, and Gender</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565578#M11210</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a unique identifier using parts of first and last name, DOB and Gender.&amp;nbsp; I want the first 2 letters of the first_name &amp;amp; the first 2 letters of the last_name &amp;amp; last 2 letters of the last_name &amp;amp; DOB with no slashes &amp;amp; Gender as either M or F.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;First_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Last_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DOB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Gender&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ID_number&lt;/P&gt;&lt;P&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Smith&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;01/02/1995&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; JOSMTH01021995M&lt;/P&gt;&lt;P&gt;Mary&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jackson&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;03/15/1975&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAJAON03151975F&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565578#M11210</guid>
      <dc:creator>suzannep</dc:creator>
      <dc:date>2019-06-12T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Unique Identifier using Name, DOB, and Gender</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565580#M11211</link>
      <description>&lt;P&gt;Assuming DOB is an actual numeric SAS date value and not a character string&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    id = cats(substr(first_name,1,2),substr(last_name,1,2),
        reverse(substr(reverse(trim(last_name)),1,2)),put(dob,mmddyyn8.),gender);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the last name has less than 4 letters, such as the name "Ty Law", then your ID would begin with TyLaaw (the letter A being repeated by this algorithm)&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 15:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565580#M11211</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-06-12T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Unique Identifier using Name, DOB, and Gender</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565640#M11222</link>
      <description>&lt;P&gt;Thank you! my date is a character string. What is the format to use so that there are no / in the id?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 18:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565640#M11222</guid>
      <dc:creator>suzannep</dc:creator>
      <dc:date>2019-06-12T18:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Unique Identifier using Name, DOB, and Gender</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565641#M11223</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    id = cats(substr(first_name,1,2),substr(last_name,1,2),
        reverse(substr(reverse(trim(last_name)),1,2)),compress(dob,'/'),gender);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jun 2019 18:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565641#M11223</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-06-12T18:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Unique Identifier using Name, DOB, and Gender</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565644#M11225</link>
      <description>THANK YOU!!!</description>
      <pubDate>Wed, 12 Jun 2019 18:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565644#M11225</guid>
      <dc:creator>suzannep</dc:creator>
      <dc:date>2019-06-12T18:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Unique Identifier using Name, DOB, and Gender</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565675#M11228</link>
      <description>&lt;P&gt;I would NOT call this a "unique id". In one data set I work with of about 5000 individuals I had two people with the same first and last name, birth date and gender. I knew they were not the same person from other data such as residence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since Joel Smutny would get the same letters as John Smith, your algorithm is very likely to have issues with the "uniqueness"&amp;nbsp;if the number of people involved is&amp;nbsp;not even very large.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 20:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-Unique-Identifier-using-Name-DOB-and-Gender/m-p/565675#M11228</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-12T20:16:43Z</dc:date>
    </item>
  </channel>
</rss>

