<?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: convert character to numeric in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529347#M144612</link>
    <description>&lt;P&gt;I don't know how the data is being used. We sent the data to downstream application for their usage.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Jan 2019 06:34:18 GMT</pubDate>
    <dc:creator>shuchidxt_gmail_com</dc:creator>
    <dc:date>2019-01-23T06:34:18Z</dc:date>
    <item>
      <title>convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529310#M144590</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to convert 25 length of character variable to numeric field in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;P&gt;I have field XYZ having data ='27201807000526_61135239'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create another NUMERIC variable ABC = &lt;SPAN&gt;27201807000526_61135239'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is this possible? Since the length of the numeric is grater than 16.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529310#M144590</guid>
      <dc:creator>shuchidxt_gmail_com</dc:creator>
      <dc:date>2019-01-23T01:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529311#M144591</link>
      <description>&lt;P&gt;An underscore isn't a numeric character so you won't get exactly what you seem to want. If you can explain why you need to convert this value to numeric might be able to offer an alternative strategy.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529311#M144591</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2019-01-23T01:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529313#M144592</link>
      <description>&lt;P&gt;SAS can store no more than 16 digits accurately, under certain conditions.&lt;/P&gt;
&lt;P&gt;Integer numbers greater than 2**53&amp;nbsp;can get distorted.&lt;/P&gt;
&lt;P&gt;For decimal numbers, the number of&amp;nbsp;exact digits is 15 maximum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are for PC/Unix. Mainframes are more accurate (but store smaller exponent sizes).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 01:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529313#M144592</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-01-23T01:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529319#M144596</link>
      <description>&lt;P&gt;You can't convert it to numeric, since it isn't a number.&amp;nbsp; If I said I was going to give you&amp;nbsp;&lt;SPAN&gt;27201807000526_61135239 chicken feathers, how many chicken feathers is that?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 02:47:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529319#M144596</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-23T02:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529345#M144611</link>
      <description>&lt;P&gt;Yes, I know that we cannot change it to numeric. I want to get assured that there is no way to convert it to numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529345#M144611</guid>
      <dc:creator>shuchidxt_gmail_com</dc:creator>
      <dc:date>2019-01-23T06:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529347#M144612</link>
      <description>&lt;P&gt;I don't know how the data is being used. We sent the data to downstream application for their usage.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529347#M144612</guid>
      <dc:creator>shuchidxt_gmail_com</dc:creator>
      <dc:date>2019-01-23T06:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529348#M144613</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27156"&gt;@shuchidxt_gmail_com&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I don't know how the data is being used. We sent the data to downstream application for their usage.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;HOW do you send it?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 06:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529348#M144613</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-23T06:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: convert character to numeric</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529364#M144619</link>
      <description>&lt;P&gt;27201807000526_61135239 is not a number, therefore your question does not make sense. If you need to convert a &lt;EM&gt;part&lt;/EM&gt; of this string to a number, then it's different, but you would need to tell us so.&lt;/P&gt;
&lt;P&gt;If the underline is in fact the decimal point (or similar), the number would have too many digits for SAS and you would lose precision.&lt;/P&gt;
&lt;P&gt;You could convert this string reliably to two separate numbers, OTOH.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 10:10:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-character-to-numeric/m-p/529364#M144619</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-23T10:10:41Z</dc:date>
    </item>
  </channel>
</rss>

