<?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 assigning unique IDs in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75455#M21896</link>
    <description>Hi.  I have a dataset with about 3,000 records. I need to assign a unique ID to these records but I don't want it to just be 1, 2, 3 or A, B, C.  I need it to be something that won't be able to be de-coded.  Is there a way to create a list of random numbers or alpha-numerics that I could then add as a variable to my dataset?  My dataset has names, dates-of-birth, race and sex.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks so much.</description>
    <pubDate>Wed, 25 Feb 2009 12:55:20 GMT</pubDate>
    <dc:creator>stateworker</dc:creator>
    <dc:date>2009-02-25T12:55:20Z</dc:date>
    <item>
      <title>assigning unique IDs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75455#M21896</link>
      <description>Hi.  I have a dataset with about 3,000 records. I need to assign a unique ID to these records but I don't want it to just be 1, 2, 3 or A, B, C.  I need it to be something that won't be able to be de-coded.  Is there a way to create a list of random numbers or alpha-numerics that I could then add as a variable to my dataset?  My dataset has names, dates-of-birth, race and sex.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks so much.</description>
      <pubDate>Wed, 25 Feb 2009 12:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75455#M21896</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2009-02-25T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: assigning unique IDs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75456#M21897</link>
      <description>Review the SAS DOC and Data Step Language Elements, focusing on the SAS functions for some ideas to use with generating random numer values and look to convert the value to a character string.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 28 Feb 2009 14:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75456#M21897</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-02-28T14:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: assigning unique IDs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75457#M21898</link>
      <description>Thanks.</description>
      <pubDate>Mon, 02 Mar 2009 14:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75457#M21898</guid>
      <dc:creator>stateworker</dc:creator>
      <dc:date>2009-03-02T14:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: assigning unique IDs</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75458#M21899</link>
      <description>data uniqid;&lt;BR /&gt;
  input x y $;&lt;BR /&gt;
  uniqid=md5(cats(x,y));&lt;BR /&gt;
  datalines;&lt;BR /&gt;
1 A&lt;BR /&gt;
2 B&lt;BR /&gt;
3 C&lt;BR /&gt;
4 D&lt;BR /&gt;
5 E&lt;BR /&gt;
;run;</description>
      <pubDate>Fri, 06 Mar 2009 13:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/assigning-unique-IDs/m-p/75458#M21899</guid>
      <dc:creator>GertNissen</dc:creator>
      <dc:date>2009-03-06T13:07:56Z</dc:date>
    </item>
  </channel>
</rss>

