<?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: Problem with importing data in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7721#M172</link>
    <description>such wide integers need to be converted, either to character strings of appropriate length, or into two numeric variables. I expect the conversion needs to be completed on the data base platform, before ODBC tries to transfer the values.</description>
    <pubDate>Fri, 28 Mar 2008 12:55:18 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-03-28T12:55:18Z</dc:date>
    <item>
      <title>Problem with importing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7719#M170</link>
      <description>I have a macro that imports data from SQL using ODBC&lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint; &lt;BR /&gt;
	DROP TABLE tb_contas;&lt;BR /&gt;
		create table tb_contas&lt;BR /&gt;
		  select * from SQLX.tb_contas;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
this works well but I found a problem with big values&lt;BR /&gt;
&lt;BR /&gt;
SQL table tb_contas there is a column x decimal(19.0)&lt;BR /&gt;
on column x there is a value 844306657506657506&lt;BR /&gt;
&lt;BR /&gt;
but when a search for that value on SAS tb_contas the result is the value 8443066575066575&lt;B&gt;3&lt;/B&gt;6&lt;BR /&gt;
&lt;BR /&gt;
I've been tried to create a table before that with format statemet (format=20.)&lt;BR /&gt;
and execute a insert but the result is the same..&lt;BR /&gt;
&lt;BR /&gt;
anybody know what is happen??&lt;BR /&gt;
&lt;BR /&gt;
thanks&lt;BR /&gt;
&lt;BR /&gt;
Vander</description>
      <pubDate>Wed, 26 Mar 2008 19:15:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7719#M170</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-26T19:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with importing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7720#M171</link>
      <description>Vander,&lt;BR /&gt;
&lt;BR /&gt;
You've got a problem with round-off errors.  SAS stores numbers as real numbers, so there is a maximum integer size that it can exactly represent.&lt;BR /&gt;
&lt;BR /&gt;
The maximum varies by platform, so you will need to go to the SAS documentation for your platform to look it up.&lt;BR /&gt;
&lt;BR /&gt;
Doc</description>
      <pubDate>Thu, 27 Mar 2008 19:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7720#M171</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2008-03-27T19:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with importing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7721#M172</link>
      <description>such wide integers need to be converted, either to character strings of appropriate length, or into two numeric variables. I expect the conversion needs to be completed on the data base platform, before ODBC tries to transfer the values.</description>
      <pubDate>Fri, 28 Mar 2008 12:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7721#M172</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-28T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with importing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7722#M173</link>
      <description>Thank for the answers</description>
      <pubDate>Fri, 28 Mar 2008 13:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7722#M173</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-28T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with importing data</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7723#M174</link>
      <description>I would second this, we have noticed that the same large integer number coming from two different ODBC sources; DB2 and SQL Server get scrambled up &lt;I&gt;differently&lt;/I&gt;.&lt;BR /&gt;
&lt;BR /&gt;
Highly suggest doing as Peter mentioned and convert at the base platform first!&lt;BR /&gt;
&lt;BR /&gt;
Ike Eisenhauer

Message was edited by: WDEisenhauer</description>
      <pubDate>Sat, 29 Mar 2008 03:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-importing-data/m-p/7723#M174</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-03-29T03:32:58Z</dc:date>
    </item>
  </channel>
</rss>

