DATA Step, Macro, Functions and more

Pass Column Label from Enterprise Guide to Oracle to Visual Analytics

Reply
Valued Guide
Posts: 588

Pass Column Label from Enterprise Guide to Oracle to Visual Analytics

Is there a way to pass a column label from a SAS dataset to an Oracle table and then from an Oracle table to Visual Analytics?

PROC Star
Posts: 500

Re: Pass Column Label from Enterprise Guide to Oracle to Visual Analytics

Posted in reply to DavidPhillips2

formats and labels are unique to each database and sas. So transferring them is not possible.

Valued Guide
Posts: 588

Re: Pass Column Label from Enterprise Guide to Oracle to Visual Analytics

Articles online said the same thing.  I was hoping there was an easy way though. I am looking at relabeling seven hundred labels.  I am going to look into scripting the labels in the Visual Analytics data preparation section. If I have a list of column names and what the label should be, I should be able to do a manual labeling from a semi manual script generation.

Respected Advisor
Posts: 4,557

Re: Pass Column Label from Enterprise Guide to Oracle to Visual Analytics

[ Edited ]
Posted in reply to DavidPhillips2

@DavidPhillips2

If the variables in SAS and Oracle have the same names then it shouldn't be that hard to retrieve the labels from the SAS variables (i.e. using dictionary.columns) and then generate SQL alter table statements as Oracle Pass-Through code.

Super User
Posts: 3,771

Re: Pass Column Label from Enterprise Guide to Oracle to Visual Analytics

Posted in reply to DavidPhillips2

Why are you loading SAS data into Oracle and then reading it back into Visual Analytics as SAS data?

 

If you need Oracle data combined with SAS data, extract it into SAS first, build your VA load table in SAS (with labels) and load it into VA from there. That way you can keep your SAS labels without any problem.

Ask a Question
Discussion stats
  • 4 replies
  • 99 views
  • 0 likes
  • 4 in conversation