BookmarkSubscribeRSS Feed
marathon2
Fluorite | Level 6
I used the following codes to create a caslib that connects to Netezza databases. However, I can't make the connections successfully.
 

proc cas;
caslib odbctables desc="odbc_conn" sessref=mySession datasource= (srctype="odbc", authenticationDomain="NZAuth", odbc_dsn="INSERT_DSN_NAME", schema="INSERT_SCHEMA_NAME", catalog="*");

quit;

 

ERROR: The connection to the data source driver failed.
ERROR: Invalid value for connection string attribute CATALOG: ODBCCASLIB
ERROR: Function failed.
ERROR: The action stopped due to errors.
 

I set up an odbc connection using "ODBC Data Sources" on Windows, where the dsn name equals "INSERT_DSN_NAME"; I also tested the connection, to make sure the connection worked.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 806 views
  • 0 likes
  • 1 in conversation