SAS Programming

DATA Step, Macro, Functions and more
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-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 710 views
  • 0 likes
  • 1 in conversation