<?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 Is there a function/format to convert word number to numeric number? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156968#M41156</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like from one to 1, two to 2, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Dec 2014 22:30:18 GMT</pubDate>
    <dc:creator>allaboutsas</dc:creator>
    <dc:date>2014-12-18T22:30:18Z</dc:date>
    <item>
      <title>Is there a function/format to convert word number to numeric number?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156968#M41156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like from one to 1, two to 2, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 22:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156968#M41156</guid>
      <dc:creator>allaboutsas</dc:creator>
      <dc:date>2014-12-18T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function/format to convert word number to numeric number?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156969#M41157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not as provided as of 9.3. Do have any idea of the range of values represented? It might be possible to create a limited informat or hash look up table if your input data is clean enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 22:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156969#M41157</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-12-18T22:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function/format to convert word number to numeric number?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156970#M41158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not that I'm aware of, but you can always roll your own format. If they are just integers you could expand the following to cover the range you need:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data seed;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length start $100;&lt;/P&gt;&lt;P&gt;&amp;nbsp; retain fmtname 'wordnum' type 'c';&lt;/P&gt;&lt;P&gt;&amp;nbsp; do label=1 to 100;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; start=put(label,words100.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; hlo='O';&lt;/P&gt;&lt;P&gt;&amp;nbsp; label='***ERROR***';&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=work cntlin=seed;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input wordnums $100.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;five&lt;/P&gt;&lt;P&gt;six&lt;/P&gt;&lt;P&gt;seven&lt;/P&gt;&lt;P&gt;eight&lt;/P&gt;&lt;P&gt;nine&lt;/P&gt;&lt;P&gt;ten&lt;/P&gt;&lt;P&gt;eleven&lt;/P&gt;&lt;P&gt;twelve&lt;/P&gt;&lt;P&gt;thirteen&lt;/P&gt;&lt;P&gt;fourteen&lt;/P&gt;&lt;P&gt;fifteen&lt;/P&gt;&lt;P&gt;sixteen&lt;/P&gt;&lt;P&gt;seventeen&lt;/P&gt;&lt;P&gt;eighteen&lt;/P&gt;&lt;P&gt;nineteen&lt;/P&gt;&lt;P&gt;twenty&lt;/P&gt;&lt;P&gt;twenty-one&lt;/P&gt;&lt;P&gt;twenty-two&lt;/P&gt;&lt;P&gt;twenty-three&lt;/P&gt;&lt;P&gt;twenty-four&lt;/P&gt;&lt;P&gt;twenty-five&lt;/P&gt;&lt;P&gt;twenty-six&lt;/P&gt;&lt;P&gt;twenty-seven&lt;/P&gt;&lt;P&gt;twenty-eight&lt;/P&gt;&lt;P&gt;twenty-nine&lt;/P&gt;&lt;P&gt;;&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; numbers=put(wordnums,$wordnum.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Dec 2014 22:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Is-there-a-function-format-to-convert-word-number-to-numeric/m-p/156970#M41158</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-18T22:47:06Z</dc:date>
    </item>
  </channel>
</rss>

