<?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 Greenplum gpfdist problem with bigint values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Greenplum-gpfdist-problem-with-bigint-values/m-p/169633#M43876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sas table with numeric fields and appending it to a Greenplum table using bulkload thru gpfdist. However, I am getting an error when there are values greater than 1 billion eventhough the fields in greenplum are declared bigint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an option to allow loading such large numbers to be loaded in Greenplum when using bulkload option. Below is a sample script of what I am currently using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=gplib.tgttable (BULKLOAD=YES BL_DATAFILE="&amp;lt;file&amp;gt;" BL_HOST=&amp;lt;host&amp;gt; BL_PORT=&amp;lt;port&amp;gt; BL_ENCODING='LATIN1' BL_FORMAT=CSV BL_NULL='\NULL\')&lt;/P&gt;&lt;P&gt;data=saslib.srctable force;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2014 06:33:30 GMT</pubDate>
    <dc:creator>milts</dc:creator>
    <dc:date>2014-08-21T06:33:30Z</dc:date>
    <item>
      <title>Greenplum gpfdist problem with bigint values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Greenplum-gpfdist-problem-with-bigint-values/m-p/169633#M43876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a sas table with numeric fields and appending it to a Greenplum table using bulkload thru gpfdist. However, I am getting an error when there are values greater than 1 billion eventhough the fields in greenplum are declared bigint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an option to allow loading such large numbers to be loaded in Greenplum when using bulkload option. Below is a sample script of what I am currently using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc append base=gplib.tgttable (BULKLOAD=YES BL_DATAFILE="&amp;lt;file&amp;gt;" BL_HOST=&amp;lt;host&amp;gt; BL_PORT=&amp;lt;port&amp;gt; BL_ENCODING='LATIN1' BL_FORMAT=CSV BL_NULL='\NULL\')&lt;/P&gt;&lt;P&gt;data=saslib.srctable force;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 06:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Greenplum-gpfdist-problem-with-bigint-values/m-p/169633#M43876</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2014-08-21T06:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Greenplum gpfdist problem with bigint values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Greenplum-gpfdist-problem-with-bigint-values/m-p/169634#M43877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bigint is not a type supported by SAS (classic). It is converted to floating.&amp;nbsp; See:&lt;BR /&gt;- &lt;A href="http://support.sas.com/documentation/cdl/en/acreldb/67473/HTML/default/viewer.htm#p19bvvj6r6e5jfn1sd4rc8wbku01.htm" title="http://support.sas.com/documentation/cdl/en/acreldb/67473/HTML/default/viewer.htm#p19bvvj6r6e5jfn1sd4rc8wbku01.htm"&gt;SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Fifth Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A href="https://support.sas.com/techsup/technote/ts654.pdf" title="https://support.sas.com/techsup/technote/ts654.pdf"&gt;https://support.sas.com/techsup/technote/ts654.pdf&lt;/A&gt;&amp;nbsp; &lt;A href="http://support.sas.com/kb/39/831.html" title="http://support.sas.com/kb/39/831.html"&gt;39831 - Problem occurs with BIGINT data types within SAS® 9.2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is a problem having more than 14 digits.... they are at best becoming randomly.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome those type conversions SAS has new appraoches&lt;/P&gt;&lt;P&gt;- &lt;A href="http://support.sas.com/documentation/cdl/en/fedsqlref/67364/HTML/default/viewer.htm#p1typszmepka9cn11kr3jrjkqgmu.htm" title="http://support.sas.com/documentation/cdl/en/fedsqlref/67364/HTML/default/viewer.htm#p1typszmepka9cn11kr3jrjkqgmu.htm"&gt;SAS(R) 9.4 FedSQL Language Reference, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p05tdglkbczcp1n1ijbhzakb1cet.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#p05tdglkbczcp1n1ijbhzakb1cet.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt; (Proc Ds2)&lt;/P&gt;&lt;P&gt;These are for accessing data out of DBMS and using in database technologies&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dow you want to use the bigint type for some reason my advice would be first loading it to an other type of field and have it converted later in Greenplum.&lt;BR /&gt;It is the common misperception, it would be better defined as:&lt;/P&gt;&lt;P&gt;- measurements With a certain precision (floating)&lt;/P&gt;&lt;P&gt;- classifications (character but possible restricted to use the numeric ones as a constraint)&lt;/P&gt;&lt;P&gt;- Time&amp;nbsp; (date datetime time is UTC or localized&amp;nbsp;&amp;nbsp; if you like star-time)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Greenplum-gpfdist-problem-with-bigint-values/m-p/169634#M43877</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-08-21T07:22:44Z</dc:date>
    </item>
  </channel>
</rss>

