Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

how to import sas dataset

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 97
Accepted Solution

how to import sas dataset

hhi,

I am new to SAS

please help me how to Import the SAS datafiles

I know PROCIMPORT can impor the CSV,TXT files,,

But can we do this same for files like TEST,DAT  ...(sas datasets)??

Regards

ALLU


Accepted Solutions
Solution
‎02-02-2013 02:09 PM
Respected Advisor
Posts: 4,930

Re: how to import sas dataset

Posted in reply to allurai0412

You don't need to import a SAS dataset (something like TEST.sas7bdat) into SAS. You just need to tell SAS where it is with a libname statement :

libname DS "C:\myDataSets";

then you can access it with syntax :

proc print data=DS.TEST; run;

PG

PG

View solution in original post


All Replies
Solution
‎02-02-2013 02:09 PM
Respected Advisor
Posts: 4,930

Re: how to import sas dataset

Posted in reply to allurai0412

You don't need to import a SAS dataset (something like TEST.sas7bdat) into SAS. You just need to tell SAS where it is with a libname statement :

libname DS "C:\myDataSets";

then you can access it with syntax :

proc print data=DS.TEST; run;

PG

PG
Frequent Contributor
Posts: 97

Re: how to import sas dataset

thanks...

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 296 views
  • 0 likes
  • 2 in conversation