BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
sasnewbie221
Calcite | Level 5
Hi,
I am trying to download a SAS table as a sasbdat file but I’m unsure of how to do this. I generated the table in SAS. Thank you
1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

@sasnewbie221 wrote:
I want to download it as a sas7bdat file. I have SAS running on the laptop

So you have both a remote SAS session and the option of running your local SAS?

First, get the path name for the library by using the PATHNAME function. Also look at the path of the Files section in your Studio navigation pane.

If the path of the library is a subdirectory of your Files location, you can navigate there and use the download button of SAS Studio.

If it is not, you need to create a subdirectory in Files, assign a LIBNAME to it, and copy the dataset there (PROC COPY, or a DATA step); then do as above.

View solution in original post

6 REPLIES 6
PaigeMiller
Diamond | Level 26

Download from where? Download to where?

--
Paige Miller
sasnewbie221
Calcite | Level 5
Download from SAS studio onto my laptop
PaigeMiller
Diamond | Level 26

Do you want to convert from a SAS data set to Excel or CSV or Text or some other format? A SAS data set downloaded to your laptop is useless unless you also have SAS running on that laptop.

--
Paige Miller
sasnewbie221
Calcite | Level 5
I want to download it as a sas7bdat file. I have SAS running on the laptop
Kurt_Bremser
Super User

@sasnewbie221 wrote:
I want to download it as a sas7bdat file. I have SAS running on the laptop

So you have both a remote SAS session and the option of running your local SAS?

First, get the path name for the library by using the PATHNAME function. Also look at the path of the Files section in your Studio navigation pane.

If the path of the library is a subdirectory of your Files location, you can navigate there and use the download button of SAS Studio.

If it is not, you need to create a subdirectory in Files, assign a LIBNAME to it, and copy the dataset there (PROC COPY, or a DATA step); then do as above.

sasnewbie221
Calcite | Level 5
Thank you!!!

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1623 views
  • 1 like
  • 3 in conversation