<?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: SQL table Numeric out of range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396760#M95826</link>
    <description>&lt;P&gt;You don't say what the number in col4 is but my guess is that once you multiply that by 100,000 you're exceeding the largest number that SQL Server can hold. A similar thing&amp;nbsp;happened on one system I worked on with ORACLE.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2017 10:51:25 GMT</pubDate>
    <dc:creator>ChrisBrooks</dc:creator>
    <dc:date>2017-09-18T10:51:25Z</dc:date>
    <item>
      <title>SQL table Numeric out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396757#M95824</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing some calculation like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data output;&lt;/P&gt;
&lt;P&gt;set input;&lt;/P&gt;
&lt;P&gt;A= (col1* col2*col3)/(100000*col4);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My value in A is always less than 10,000 but when I am loading this output datasset in the &amp;nbsp;MS SQL table it is giving an error Numeric out of range.&lt;/P&gt;
&lt;P&gt;One option is to increase the length of column in SQL table but I am looking for solution - &amp;nbsp;what should I do in data step so that data can be inserted into MS SQL table without getting an error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The place holder in MS SQL have sufficient length.&lt;/P&gt;
&lt;P&gt;Seondly, I also tried using round function in data step but it didnt help.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 10:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396757#M95824</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-09-18T10:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL table Numeric out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396760#M95826</link>
      <description>&lt;P&gt;You don't say what the number in col4 is but my guess is that once you multiply that by 100,000 you're exceeding the largest number that SQL Server can hold. A similar thing&amp;nbsp;happened on one system I worked on with ORACLE.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 10:51:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396760#M95826</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-09-18T10:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL table Numeric out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396761#M95827</link>
      <description>&lt;P&gt;What is your columns definition i SQL Server, and what values are rejected?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 10:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396761#M95827</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-09-18T10:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL table Numeric out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396763#M95828</link>
      <description>&lt;P&gt;Existing definition - decimal(24,10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I changed to decimal(27,10) then it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not want to change the existing definition.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 11:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396763#M95828</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-09-18T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL table Numeric out of range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396791#M95834</link>
      <description>&lt;P&gt;Ok, not following. Either it fits, or not. Can't see that this is a SAS problem.&lt;/P&gt;
&lt;P&gt;It seems that you either need to fix your data, or your columns definitions.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 12:34:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SQL-table-Numeric-out-of-range/m-p/396791#M95834</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-09-18T12:34:36Z</dc:date>
    </item>
  </channel>
</rss>

