BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9

Hello, we have written a transformation which will load data to hadoop from sqlserver library.

 

The problem is that we are losing the labels of my columns. Any idea?

 

data &hdfsLibref..&outtable (/*debug optie: logupdate=yes */blocksize=64M label="&tableDescr.");
set &_input;
run;

6 REPLIES 6
LinusH
Tourmaline | Level 20

The concept of label is local to SAS. Some databases have similar concepts, but they are not supported by SAS/ACCESS engines unfortunately.

One way of enforcing labels is to store them in SAS metadata, and use the META libname engine.

 

Data never sleeps
Filipvdr
Pyrite | Level 9
So you mean we have to use a meta libname statement?
LinusH
Tourmaline | Level 20

"Have to" is a strong statement, but yes (during query time, not necessarily during update).

Data never sleeps
Filipvdr
Pyrite | Level 9
thanks, we are trying to load data from Enterprise Guide to Hadoop and from Hadoop to LASR memory. The Eguide and Hadoop/LASR are on different metadata environments.

When I do a copy of the dataset in enterprise guide to my work library with the meta libname statement it copies the labels. Thanks!

But when we are running our code we will connect to the VA environment where we execute some parts of the code. In the VA environment we can run the full libname statement:
LIBNAME MW1DM_05 SQLSVR DATAsrc=bisql2_o SCHEMA=MW1DM_05 AUTHDOMAIN="auth_bisql2_o";

But not this one:
libname MW1DM_05 meta library="MW MV90 DM";

So do we have any other option then add this library to the metadata of our VA environment?

LinusH
Tourmaline | Level 20
So just to be clear, do you have separate metadata server for your EG workspace and VA?
Also, why are you concerned about labels on the external data? As long your corresponding metadata in VA contains labels, that's what the user will see, or am I missing something here?
Data never sleeps
Filipvdr
Pyrite | Level 9

yes we have different metadataservers

 

we load from Eguide to hadoop to LASR. Ofcourse, it's not important what's in hadoop but we also have no labels in the LASR tables.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 6 replies
  • 769 views
  • 0 likes
  • 2 in conversation