<?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 creating numeric variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424278#M104464</link>
    <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I am trying to create a numeric variable which has value "657253982556657625876"&amp;nbsp; after creating this variable the output I got is wrong i.e. "657253982556657680384".&lt;BR /&gt;&lt;BR /&gt;My program is :&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;format id best32.;&lt;BR /&gt;input id;&lt;BR /&gt;datalines;&lt;BR /&gt;657253982556657625876&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2018 08:02:17 GMT</pubDate>
    <dc:creator>india2016</dc:creator>
    <dc:date>2018-01-02T08:02:17Z</dc:date>
    <item>
      <title>creating numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424278#M104464</link>
      <description>&lt;P&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I am trying to create a numeric variable which has value "657253982556657625876"&amp;nbsp; after creating this variable the output I got is wrong i.e. "657253982556657680384".&lt;BR /&gt;&lt;BR /&gt;My program is :&lt;/P&gt;&lt;P&gt;data abc;&lt;BR /&gt;format id best32.;&lt;BR /&gt;input id;&lt;BR /&gt;datalines;&lt;BR /&gt;657253982556657625876&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 08:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424278#M104464</guid>
      <dc:creator>india2016</dc:creator>
      <dc:date>2018-01-02T08:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: creating numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424280#M104465</link>
      <description>&lt;P&gt;Your number exceeds what SAS can store numerically in 8 bytes. Have a look at &lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p0ji1unv6thm0dn1gp4t01a1u0g6.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=nl#p1ikmedbli0rz2n1de001ryz895o" target="_self"&gt;the on-line documentation &lt;/A&gt;to see what the limits are for your operating system. If you are running Windows your maximum integer value is&amp;nbsp;&lt;SPAN&gt;9,007,199,254,740,992. You can see your number exceeds this. The article I refer to contains some pointers on how to deal with t his. Basically it comes down to the choice between magnitude and precision.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-- Jan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 08:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424280#M104465</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-01-02T08:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: creating numeric variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424281#M104466</link>
      <description>&lt;P&gt;Looking at your code I see the variable is named ID. This suggests that the number is used for identification and no arithmetic will be performed on it. I suggest you store the variable as a character variable to avoid&amp;nbsp;numerical errors of the sort you are experiencing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-- Jan&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 08:52:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/creating-numeric-variable/m-p/424281#M104466</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-01-02T08:52:14Z</dc:date>
    </item>
  </channel>
</rss>

