BookmarkSubscribeRSS Feed
lauracw4
Fluorite | Level 6

When I loaded an numeric ID variable to Hadoop using a simple data step, it went up as DOUBLE, adding a ".0".  This causes problems with joins.  What format should an ID be in when in SAS so that it will load up to Hadoop as BIGINT?

 

data had.hadoop_table;

set lib.sas_table;

run;

 

1 REPLY 1
kiranv_
Rhodochrosite | Level 12

need to do something like below by using dbsastype

data had.hadoop_table;

set lib.sas_table (dbsastype= (name='char(20)'));

run;

 

please check this link for more info.

 

http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a001371572.htm

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!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 568 views
  • 0 likes
  • 2 in conversation