<?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: Loading data from SAS to SQL decimal values in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210106#M15744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no decimal(10,5) data type in SAS. All numeric variables are stored in 8 byte floating point. Could it be a mismatch in how the data moves from SAS to SQL? It looks like your values are being truncated because there's an integer data type in there somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 18:54:13 GMT</pubDate>
    <dc:creator>TomKari</dc:creator>
    <dc:date>2015-07-23T18:54:13Z</dc:date>
    <item>
      <title>Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210105#M15743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When Iam trying to load data from SAS to SQL decimal values it is rounding off automatically.Eventhough i used same decimal(10,5) same as SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS : 0.31964&lt;/P&gt;&lt;P&gt;In SQL : 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is just straight forward load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL;&lt;/P&gt;&lt;P&gt;INSERT INTO libname.sqltable&lt;/P&gt;&lt;P&gt;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,col2&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,col3&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,col4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;) &lt;/P&gt;&lt;P&gt;Select &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;col1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,col2&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,col3&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,col4&lt;/P&gt;&lt;P&gt;&amp;nbsp; from WORK.sastable ;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could any one please advise on this.Thanks in advance !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:19:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210105#M15743</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2015-07-23T18:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210106#M15744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no decimal(10,5) data type in SAS. All numeric variables are stored in 8 byte floating point. Could it be a mismatch in how the data moves from SAS to SQL? It looks like your values are being truncated because there's an integer data type in there somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210106#M15744</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-07-23T18:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210107#M15745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the database you are loading into? SAS uses default translations to convert from SAS columns to database columns. For numerics the SAS format of the column is important, so what SAS formats are applied to the columns being loaded?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 19:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210107#M15745</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-07-23T19:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210108#M15746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks tom for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Created in SAS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data xx1;&lt;/P&gt;&lt;P&gt;informat col1 10.5;&lt;/P&gt;&lt;P&gt;format col1 10.5;&lt;/P&gt;&lt;P&gt;input col1;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;9.47663&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading to SQL it is loading just 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no conversion between ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQl , The columns datatype is &lt;SPAN style="color: #333333; font-family: 'Lucida Grande', arial, sans-serif; font-size: 12px; background-color: #ffffff;"&gt;[col1] [decimal](10, 5) NULL&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 22:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210108#M15746</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2015-07-23T22:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210109#M15747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;show us the result of&lt;/P&gt;&lt;P&gt;proc contents data=libname.sqltable;run;&lt;/P&gt;&lt;P&gt;(table used in INSERT INTO libname.sqltable)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 23:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210109#M15747</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2015-07-23T23:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210110#M15748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using SAS/ACCESS to ODBC then using the SQI ODBC driver? And what is the back-end database you are connecting to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so this is what SAS does: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/viewer.htm#n13gtugcxgdqstn1pooivt622n4q.htm"&gt;http://support.sas.com/documentation/cdl/en/acreldb/68028/HTML/default/viewer.htm#n13gtugcxgdqstn1pooivt622n4q.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 23:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210110#M15748</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-07-23T23:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAS to SQL decimal values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210111#M15749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything you're doing looks fine to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I can think of, is can you use a tool native to your DBMS to ensure that the value is actually 9? I'm wondering if it's actually correct in the database, but being truncated when displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 21:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Loading-data-from-SAS-to-SQL-decimal-values/m-p/210111#M15749</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-07-24T21:20:41Z</dc:date>
    </item>
  </channel>
</rss>

