People,
How to substitute the pass through comand for libname
connect to oracle as myconn (user=smith password=secret
path='myoracleserver');
for libname sintax
Hey,
if you use a environment with a Metadata Server (normally BI Server) you could use a Authentication Domain (libname option 'authdomain='). You will have to setup the library in the Metadata Server first, but that are a few steps.
This paper will give you a short overview (it is some days older, but the steps are the same until now).
http://support.sas.com/techsup/technote/ts771.pdf
Best regards,
Andreas
PROC SQL;
CONNECT TO ORACLE (user=user password="password" path=schema);
CREATE TABLE LIBRARY.tab_nm AS
SELECT *
FROM CONNECTION TO ORACLE
(
<Your ORACLE SQL query here>
);
DISCONNECT
FROM ORACLE;
QUIT;
thanks r_behata!
But I cant show my user and password at code.
I need to have a way that my user and password can't be seen by other users that can access my program.sas or log.
Regards
Then you have to make sure that only those with need-to-know have access to those files.
Encoding the Password is one option.
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002595992.htm
Hey,
if you use a environment with a Metadata Server (normally BI Server) you could use a Authentication Domain (libname option 'authdomain='). You will have to setup the library in the Metadata Server first, but that are a few steps.
This paper will give you a short overview (it is some days older, but the steps are the same until now).
http://support.sas.com/techsup/technote/ts771.pdf
Best regards,
Andreas
I'm sorry for the delay in replying
My client uses connection in SQL.
CONNECT TO ODBC AS SQLCON
(DSN = BW_PROD USER = SRV_SASLayout PWD = "XXXXXXX%" READ_ISOLATION_LEVEL = 'RU');
Thanks for the tips and I'm reviewing what you have sent
I'll test the alternatives.
thankful
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.