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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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