<?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: Assigning random Alphanumeric IDs to empty cells in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265355#M1550</link>
    <description>Please do not take into account the lenght of the ID of the fields in your answer, as it is not important.</description>
    <pubDate>Thu, 21 Apr 2016 08:48:55 GMT</pubDate>
    <dc:creator>Escada</dc:creator>
    <dc:date>2016-04-21T08:48:55Z</dc:date>
    <item>
      <title>Assigning random Alphanumeric IDs to empty cells</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265353#M1548</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an existing table which contains a column listing IDs. However some of its cells contain an empty ID:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Age&lt;/P&gt;&lt;P&gt;XYS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;60&lt;/P&gt;&lt;P&gt;STW &amp;nbsp; &amp;nbsp; &amp;nbsp; 55&lt;/P&gt;&lt;P&gt;WTR &amp;nbsp; &amp;nbsp; &amp;nbsp;36&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to assign Alphanumeric IDs (20 digits) to these empty cells in order for them to be filled, but never repeated. This should also happen, irrespectively of the number of rows of the data set, as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Age&lt;/P&gt;&lt;P&gt;XYSRW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RAND1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; 60&lt;/P&gt;&lt;P&gt;STWQT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55&lt;/P&gt;&lt;P&gt;WTRWQ &amp;nbsp; &amp;nbsp; &amp;nbsp; 36&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RAND2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/STRONG&gt; 45&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody help me on this issue, with a simple statement that fills automatically these empty fields randomly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 08:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265353#M1548</guid>
      <dc:creator>Escada</dc:creator>
      <dc:date>2016-04-21T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning random Alphanumeric IDs to empty cells</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265354#M1549</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want (drop=cnt);
  set have;
  retain cnt;
  if _n_=1 then cnt=1;
  if missing(id) then do;
    id=cats("RAND",put(cnt,best.));
    cnt=cnt+1;
  end;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Apr 2016 08:48:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265354#M1549</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-21T08:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning random Alphanumeric IDs to empty cells</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265355#M1550</link>
      <description>Please do not take into account the lenght of the ID of the fields in your answer, as it is not important.</description>
      <pubDate>Thu, 21 Apr 2016 08:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265355#M1550</guid>
      <dc:creator>Escada</dc:creator>
      <dc:date>2016-04-21T08:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning random Alphanumeric IDs to empty cells</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265357#M1551</link>
      <description>Perfect!&lt;BR /&gt;Thank you so much for your help, RW9.&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Fernando</description>
      <pubDate>Thu, 21 Apr 2016 09:00:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Assigning-random-Alphanumeric-IDs-to-empty-cells/m-p/265357#M1551</guid>
      <dc:creator>Escada</dc:creator>
      <dc:date>2016-04-21T09:00:54Z</dc:date>
    </item>
  </channel>
</rss>

