BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Gabs289
Calcite | Level 5
 

I am relatively new to sas. I have a data set in one of my folders among the Explorer but I need to have it in my Library called WORK so that I can use it, the file ends with .sas7bdat How can I do that?

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26
libname mylib "foldername";

This allows SAS to use your .sas7bdat file. Let's suppose the file name is GEORGE, you would use this file in SAS by referring to it as MYLIB.GEORGE

 

You can drag it into the work folder if you want, or you can use PROC COPY

 

proc copy in=mylib out=work nolist;
select george;
run;
quit;
--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26
libname mylib "foldername";

This allows SAS to use your .sas7bdat file. Let's suppose the file name is GEORGE, you would use this file in SAS by referring to it as MYLIB.GEORGE

 

You can drag it into the work folder if you want, or you can use PROC COPY

 

proc copy in=mylib out=work nolist;
select george;
run;
quit;
--
Paige Miller

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 359 views
  • 1 like
  • 3 in conversation