<?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 System generated codes in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11098#M1205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;How can AbAa, AeAi, AmAp, AfAd, AtAc, . . .&amp;nbsp;&amp;nbsp; be converted to the code&amp;nbsp;&amp;nbsp; 01, 02, 03, 04, 05, . . . &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;where the codes 01, 02, . . . are generated by the system?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;I have two columns (variables) of character values as shown above with some of the values repeating, &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;and I would want to be able to tell which character value was converted to which code. Each variable&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;holds thousands of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Sep 2011 14:29:40 GMT</pubDate>
    <dc:creator>EMKBB</dc:creator>
    <dc:date>2011-09-17T14:29:40Z</dc:date>
    <item>
      <title>System generated codes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11098#M1205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;How can AbAa, AeAi, AmAp, AfAd, AtAc, . . .&amp;nbsp;&amp;nbsp; be converted to the code&amp;nbsp;&amp;nbsp; 01, 02, 03, 04, 05, . . . &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;where the codes 01, 02, . . . are generated by the system?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;I have two columns (variables) of character values as shown above with some of the values repeating, &lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;and I would want to be able to tell which character value was converted to which code. Each variable&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;holds thousands of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;Thank you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 14:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11098#M1205</guid>
      <dc:creator>EMKBB</dc:creator>
      <dc:date>2011-09-17T14:29:40Z</dc:date>
    </item>
    <item>
      <title>System generated codes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11099#M1206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to get the most useful help, you would have to provide more info, specifically regarding how you want to use these codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always sort the dataset by the field's values and include the nodupkey option to generate a sorted list of the unique values, create the desired number references by creating a field based on the values of _n_ but formatted using the zW. format, and then use proc format with the cntlin option to automatically create the formats or informats that you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A nice paper on how to do that can be found at: &lt;A href="http://www2.sas.com/proceedings/forum2007/068-2007.pdf"&gt;http://www2.sas.com/proceedings/forum2007/068-2007.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 14:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11099#M1206</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-17T14:43:12Z</dc:date>
    </item>
    <item>
      <title>System generated codes</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11100#M1207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Art297&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the lead, I will check the paper up, try it and get back to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 13:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/System-generated-codes/m-p/11100#M1207</guid>
      <dc:creator>EMKBB</dc:creator>
      <dc:date>2011-09-19T13:38:57Z</dc:date>
    </item>
  </channel>
</rss>

