What is the meaning of the following code? What does it mean? what does it do? How we create DSN and from where we get user and password? Please explain.
libname Comp_Sour odbc dsn=COMP user="SAAS_USER" password="abc" schema=dbo;
data temp_comp;
set Comp_Sour .Main_File;
run;
You may want to search for setting up odbc connections, i am confident, that the necessary steps are well documented.
@sas_it wrote:
What is the meaning of the following code? What does it mean? what does it do? How we create DSN and from where we get user and password? Please explain.
libname Comp_Sour odbc dsn=COMP user="SAAS_USER" password="abc" schema=dbo;
data temp_comp;
set Comp_Sour .Main_File;run;
It links to a database identified as COMP, provides a username and password, and then creates a temporary SAS data set that contains the entire contents of the database table Main_File
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: