BookmarkSubscribeRSS Feed
sas_it
Quartz | Level 8

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;

2 REPLIES 2
andreas_lds
Jade | Level 19

You may want to search for setting up odbc connections, i am confident, that the necessary steps are well documented.

PaigeMiller
Diamond | Level 26

@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

--
Paige Miller

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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