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.

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 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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