Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save sas data set file to a local folder on server

Tags:

sas

Is is possible to save SAS data set (sas7bdat) to a local folder on server? For example c:\Work folder. I know only proc export to csv. Thank you.

like image 888
Donald William Glossfield Avatar asked Jun 08 '16 13:06

Donald William Glossfield


1 Answers

Yes, this is what libraries are in SAS. They're essentially folders to store SAS datasets. First create a library reference to the location and then save the dataset to the location.

Libname out '/folders/myfolders/output/';

data out.data_save;
    Set data_to_save;
 Run;
like image 88
Reeza Avatar answered Oct 30 '22 00:10

Reeza