How to connect snowflake to SAS - snowflake-connector

How to connect snowflake to SAS using ODBC driver.
I am following steps given in article
https://www.dshs.texas.gov/PHID/NEDSS/Files/SAS-connection-to-Snowflake.pdf
getting below error
Approach 1: Steps to connect via SAS interface--
ERROR: The SASIOSNF engine cannot be found.
ERROR: Error in the LIBNAME statement.
Approach 2: Steps to connect via ODBC--
ERROR: The ODBC engine cannot be found.
ERROR: Error in the LIBNAME statement.

Related

Connect to database with Amazon Redshift

Trying to do something really simple, not sure why it's not working.
I downloaded SQL workbench and connected to my Redshift driver. Connection is fine. I created a database using CREATE DATABASE dbexample
Now I'm trying to connect to the database. I've tried \c dbexample and \connect dbexample and am getting the following error:
An error occurred when executing the SQL command:
\connect dbname
[Amazon](500310) Invalid operation: syntax error at or near "\"
Position: 1;
\connect dbname
^
1 statement failed.
Anyone know why it's not connecting?
The \backslash commands are specific to the psql utility and are not generic SQL commands for use in a product such as SQL Workbench.
Instead, specify the database name when you connect SQL Workbench to the database.
Provide the name of the database in the URL itself:

Connect SAS to AWS Athena

I am trying to establish a connection between SAS & AWS Athena.
I am working on RHEL 6.7, java version is 1.8.0_71.
Could someone advise how to configure that please?
So far, after some reading on "Accessing Amazon Athena with JDBC" , I have tried a 'maybe it will work' naive approach with trying to set a DSN in odbc.ini files (outside of SAS): I have downloaded Athena JDBC jar file and tried configuring connection in a similar way I did it for EMR.
odbc.ini:
[ODBC]
# Specify any global ODBC configuration here such as ODBC tracing.
[ODBC Data Sources]
ATHENA=Amazon Athena JDBC Driver
[ATHENA]
Driver=/opt/amazon/hiveodbc/lib/64/AthenaJDBC41-1.1.0.jar
HOST=jdbc:awsathena://athena.eu-west-1.amazonaws.com:443?s3_staging_dir=s3://aws-athena-query-results/sas/
odbcinst.ini
[ODBC Drivers]
Amazon Athena JDBC Driver=Installed
[Amazon Athena JDBC Driver]
Description=Amazon Athena JDBC Driver
Driver=/opt/amazon/hiveodbc/lib/64/AthenaJDBC41-1.1.0.jar
## The option below is for using unixODBC when compiled with -DSQL_WCHART_CONVERT.
## Execute 'odbc_config --cflags' to determine if you need to uncomment it.
# IconvEncoding=UCS-4LE
iODBC throws the following:
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0709.0909
Enter ODBC connect string (? shows list): DSN=ATHENA
1: SQLDriverConnect = [iODBC][Driver Manager]/opt/amazon/hiveodbc/lib/64/AthenaJDBC41-1.1.0.jar: invalid ELF header (0) SQLSTATE=00000
2: SQLDriverConnect = [iODBC][Driver Manager]Specified driver could not be loaded (0) SQLSTATE=IM003
Any suggestion would be much appreciated!

Libname Connection to SAS Access to Redshift throwing CLI error

We recently got SAS Access to Redshift license and are trying to connect to Redshift database directly without ODBC.
This is the libname statement I am using
libname A1 redshift server='XXX' port=5439 user='YYYY' password='ZZZZ' Database='RRRR';
It is however throwing the following error
ERROR: CLI error trying to establish connection: [unixODBC][Driver
Manager]Can't open lib 'SAS ACCESS to Amazon Redshift' : file not
found ERROR: Error in the LIBNAME statement.
Are there any configurations we need to do before using SAS Access to Redshift?
Thanks in advance.
Yes - you need to configure your ODBC settings.
You can find a very detailed guide here and additional guidance here

What is CLI execute error in SAS?

I am trying to use SAS to upload a table into teradata. The table started to upload, the names of the variable got uploaded and the table was created. However I got
ERROR: CLI execute error: [Teradata][ODBC Teradata Driver] Character string truncated
What is this?
CLI execute error is an often-not-very-helpful error message SAS returns when it receives an error from the RDBMS when it submits code; in this case it may not be a true error, it may simply be saying that one or more of your character strings didn't fit in the columns.

INFORMATICA LOADING ERROR

I am newbie to informatica.
I am using INFORMATICA 9.1.0 and oracle 11g as source and target database.
I tried to create one table in target database and tried to load data from source to target.
Table is getting created in target database. and I created mapping and workflow which is valid and i start work flow but it gave me following error.
Message Code RR_4036
Message
Error connecting to database [ Arun
ORA-00900: invalid SQL statement
Database driver error...
Function Name : executeDirect
SQL Stmt : Arun
Oracle Fatal Error
Database driver error...
Function Name : ExecuteDirect
Oracle Fatal Error
].
please help me with good solutions.
I got solution for this.
Previously while creating remote connection in Relational Connection Editor for a session, In code page option i chose "UTF-8 encoding of unicode". Now i changed to "ms windows latin 1 (ansi) superset of latin1" and I restarted the workflow which is succeeded.
The following video link shows how to create relational connection for a session.
http://www.youtube.com/watch?v=oM2d-IHfRUw