<?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: SAS Values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202609#M306065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you try to convert the string to a number?&lt;/P&gt;&lt;P&gt;You can use the COMMA informat to read numbers in the normal format for your LOCALE setting.&lt;/P&gt;&lt;P&gt;Use COMMAX informat to read those where the roles of the comma and the period have been reversed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;38&amp;nbsp;&amp;nbsp; data sample;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input str $20. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num1 = input(str,comma20.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num2 = input(str,commaX20.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;42&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put (_all_) (=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;43&amp;nbsp;&amp;nbsp; cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;str=1,234.56 num1=1234.56 num2=1.23456&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;str=1.234,56 num1=1.23456 num2=1234.56&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 19:43:31 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-07-14T19:43:31Z</dc:date>
    <item>
      <title>SAS Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202607#M306063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, again.&lt;/P&gt;&lt;P&gt;I have a doubt.&lt;/P&gt;&lt;P&gt;Is there any way to recover numeric values like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.45 is formatted as comma10.2, but it's damaged, because this value comes like this 2.446,58 as string.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So the value of 2.45 is after i format the variable, but i need then like &lt;STRONG style="font-size: 13.3333330154419px;"&gt;2.446,58.&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to recover it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rodrigo Elias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 18:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202607#M306063</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2015-07-14T18:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202608#M306064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But there are a lot more data like this.&lt;/P&gt;&lt;P&gt;I need to recover the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:02:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202608#M306064</guid>
      <dc:creator>DartRodrigo</dc:creator>
      <dc:date>2015-07-14T19:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202609#M306065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you try to convert the string to a number?&lt;/P&gt;&lt;P&gt;You can use the COMMA informat to read numbers in the normal format for your LOCALE setting.&lt;/P&gt;&lt;P&gt;Use COMMAX informat to read those where the roles of the comma and the period have been reversed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;38&amp;nbsp;&amp;nbsp; data sample;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;39&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input str $20. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;40&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num1 = input(str,comma20.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num2 = input(str,commaX20.);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;42&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put (_all_) (=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;43&amp;nbsp;&amp;nbsp; cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;str=1,234.56 num1=1234.56 num2=1.23456&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;str=1.234,56 num1=1.23456 num2=1234.56&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202609#M306065</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-14T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202610#M306066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you already have the values as numbers and no longer have the strings?&lt;/P&gt;&lt;P&gt;Print the number without a format (or using the BEST format).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might just need to multiple by 1000 for that example.&lt;/P&gt;&lt;P&gt;But if the original number was less than 100 and it had 2 decimal places you would need to divide by 100.&lt;/P&gt;&lt;P&gt;If the original value was greater than a million then you probably have a missing numeric value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Values/m-p/202610#M306066</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-14T19:46:15Z</dc:date>
    </item>
  </channel>
</rss>

