BookmarkSubscribeRSS Feed
margautz
Fluorite | Level 6

Hello,

 

I have access to SAS table in Data Connections (SAS technical support suggest an ODBC connection and the IT team performs it), how can I access to that data using a SAS Code object (in Process Job>>Data Integration)? Have I to set up special setting in the Settings/Inputs tab?

 

Thank you for your time!

 

 

3 REPLIES 3
RonAgresta
SAS Employee

It may seem counterintuitive but there are two different data access methods going on here. When you use Data Connections, you are using a Data Management Studio managed data source and by doing so this data will show up in many places like when you build a data job or perform data profiling.

 

In a process job, when you use the SAS code node, you are actually communicating with a SAS workspace server. It won't have knowledge of the connection to SAS you established in Data Management Studio. If you want to access the same SAS table from the SAS code node, it would have to be available to your workspace server through normal means you would use to set up a connection to a data library in SAS.

 

But you don't need to use the SAS code node to work with the data in Data Management Studio. Once you connect to it, you can use any number of the other data quality and data integration nodes to transform the data.

 

Ron

 

Ron

margautz
Fluorite | Level 6

Thank you Ron.

 

I would like to use SAS code because I would like to use the SAS programming language. I am learning the EEL, but it could be easier and faster, for the moment, if I could write "in" SAS.

 

Anyway, I am going to try.

 

Thanks again,

Margherita

margautz
Fluorite | Level 6

Hi Ron,

 

I get the SAS connection for the SAS code node. I am able to connect to the workspace and to retrive data, but...I am not able to use these data.

 

I tried just a proc sql (I know I can use the sql node, but it was just to try), if I put "create table as..." then I cannot see the output (where does DataFlux put the worktable?), if I do not put anything, the output is weird, it is in lines.

 

Eg:

If the table in the DB is

AAA    BBB
1         smith
2         paul
3         boss

 

then the output is

AAA
BBB

-------------

1
smith

 

2
paul

 

3
boss

 

Thank you for your time!

 

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