BookmarkSubscribeRSS Feed
arunrami
Pyrite | Level 9

Hello Guys,

 

I just needed to encrypt or encode user name and password to use it in SAS code instead of using naked user and password . For password , its working fine after using encoded by PROC PWENCODE but it's not the case for User name and I am getting following error message.. Is there any way to hide the user name other than using permanent macro ?

 

ERROR: ORACLE connection error: ORA-010: invalid username/password; logon denied.
ERROR: Error in the LIBNAME statement.

1 REPLY 1
Gaetan
Obsidian | Level 7

Hi @arunrami,

 

Using AUTHDOMAIN option is the best way :

 

For example : Usage Note 38204: Using the AUTHDOMAIN= option with SAS/ACCESS® 9.2 engines

 

Best regards,

Gaetan

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 987 views
  • 0 likes
  • 2 in conversation