BookmarkSubscribeRSS Feed
jayvisw11
Fluorite | Level 6

Hi,

 

I am a new SAS Viya User. I am trying to connect to the AWS Athena Data warehouse by establishing a ODBC connection. I created a caslib using the caslib statement and assigned the caslib. Can I access the files/tables in the Data warehouse without loading the data to caslib? TIA

4 REPLIES 4
SASKiwi
PROC Star

Where have you got with establishing an ODBC connection to Athena in SAS?

 

Perhaps you could try a LIBNAME using the ODBC engine like in these posts:

Solved: SAS, Athena, and Hyphens - SAS Support Communities

Solved: Getting error while testing Athena JDBC/ODBC bridg... - SAS Support Communities

 

jayvisw11
Fluorite | Level 6
Hi,
My issue is resolved now. Thank you for your response 🙂
SASKiwi
PROC Star

@jayvisw11  - Please update your post as answered in that case.

jayvisw11
Fluorite | Level 6

Two things helped me in resolving the issue.
1. Including the schema option while creating the caslib to establish a connection to Data warehouse via ODBC.
2. Using proc fedsql instead of proc sql to query the DW.

I hope this helps. Thank you! 🙂

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Discussion stats
  • 4 replies
  • 1591 views
  • 0 likes
  • 2 in conversation