BookmarkSubscribeRSS Feed
milind3889
Obsidian | Level 7

I am trying to connect Amazon Redshift database by using SAS/ACCESS interface to ODBC

I encoded my redshift password and providing encoded password in libname statement.

 

libname source odbc 
user="milind"
password="{SAS005}1244C53A7CA4054EA8318............"
datasrc="RWE_pharmetrics_DSN"
schema="public";

 

But I am getting below CLI error in the log

 


458
459 libname source odbc user="milind"
459! password=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
459! XXX datasrc="RWE_pharmetrics_DSN" schema="public";
ERROR: CLI error trying to establish connection: [Amazon][Amazon Redshift] (10) Error occurred
while trying to connect: [SQLState 28000] FATAL: password authentication failed for user
"milind"
ERROR: Error in the LIBNAME statement.

 

 

When I provide direct password (without encoding), it works well. 

 

 

 

2 REPLIES 2
VDD
Ammonite | Level 13 VDD
Ammonite | Level 13

parameter needs to be added in the LIBNAME statement to resolve the issue
CONOPTS="EncryptionMethod=6;ValidateServerCertificate=0"

Ksharp
Super User

You can set PW in data source "RWE_pharmetrics_DSN" when set it up .

And remoce pw= option in Libname statement.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1227 views
  • 0 likes
  • 3 in conversation