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-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 749 views
  • 0 likes
  • 2 in conversation