<?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 Numbers and Alphas in Character Field in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-and-Alphas-in-Character-Field/m-p/182843#M46541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for some assistance.&amp;nbsp;&amp;nbsp; I have a character field variable that contains data with both text and numbers.&amp;nbsp; I am looking to change the data that is text into number zero and keep the text that looks like numbers and convert to number for further calculation/analysis.&amp;nbsp; Is there a way to do this?&amp;nbsp; Any help would be greatly appreciated.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2014 23:50:24 GMT</pubDate>
    <dc:creator>SannaSanna</dc:creator>
    <dc:date>2014-02-21T23:50:24Z</dc:date>
    <item>
      <title>Numbers and Alphas in Character Field</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-and-Alphas-in-Character-Field/m-p/182843#M46541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for some assistance.&amp;nbsp;&amp;nbsp; I have a character field variable that contains data with both text and numbers.&amp;nbsp; I am looking to change the data that is text into number zero and keep the text that looks like numbers and convert to number for further calculation/analysis.&amp;nbsp; Is there a way to do this?&amp;nbsp; Any help would be greatly appreciated.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 23:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-and-Alphas-in-Character-Field/m-p/182843#M46541</guid>
      <dc:creator>SannaSanna</dc:creator>
      <dc:date>2014-02-21T23:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Numbers and Alphas in Character Field</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Numbers-and-Alphas-in-Character-Field/m-p/182844#M46542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why zero?&lt;/P&gt;&lt;P&gt;Create a new variable from the old variable.&lt;/P&gt;&lt;P&gt;Example: Create NUMBER from ALPHA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; number = input(alpha,??20.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if number = . then number = 0;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2014 00:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Numbers-and-Alphas-in-Character-Field/m-p/182844#M46542</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-02-22T00:55:07Z</dc:date>
    </item>
  </channel>
</rss>

