BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

Hi,

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.

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.

proc append base=gplib.tgttable (BULKLOAD=YES BL_DATAFILE="<file>" BL_HOST=<host> BL_PORT=<port> BL_ENCODING='LATIN1' BL_FORMAT=CSV BL_NULL='\NULL\')

data=saslib.srctable force;

run;

Thanks!

1 REPLY 1
jakarman
Barite | Level 11

Bigint is not a type supported by SAS (classic). It is converted to floating.  See:
- SAS/ACCESS(R) 9.4 for Relational Databases: Reference, Fifth Edition

- https://support.sas.com/techsup/technote/ts654.pdf  39831 - Problem occurs with BIGINT data types within SAS® 9.2

There is a problem having more than 14 digits.... they are at best becoming randomly. 

To overcome those type conversions SAS has new appraoches

- SAS(R) 9.4 FedSQL Language Reference, Third Edition

- Base SAS(R) 9.4 Procedures Guide, Third Edition (Proc Ds2)

These are for accessing data out of DBMS and using in database technologies

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.
It is the common misperception, it would be better defined as:

- measurements With a certain precision (floating)

- classifications (character but possible restricted to use the numeric ones as a constraint)

- Time  (date datetime time is UTC or localized   if you like star-time)  

---->-- ja karman --<-----

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 732 views
  • 3 likes
  • 2 in conversation