BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
emmad511
Fluorite | Level 6

Hello, I was wondering about how to import a sas7bdat file with proc import.

I've done some search for it but all I can find was using LIB with DATA.

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Your search is correct. PROC IMPORT is to create a sas7bdat file but if you already have you use it directly by referencing it, no need for an import step. It's kind of like asking how to open an Excel file with Excel?

libname myfiles '/folders/myfolders/';

data myData;
set myFiles.dataSetName;
run;

View solution in original post

2 REPLIES 2
Reeza
Super User
Your search is correct. PROC IMPORT is to create a sas7bdat file but if you already have you use it directly by referencing it, no need for an import step. It's kind of like asking how to open an Excel file with Excel?

libname myfiles '/folders/myfolders/';

data myData;
set myFiles.dataSetName;
run;
emmad511
Fluorite | Level 6

Thank you for the explanation! That makes a lot more sense 🙂

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 2 replies
  • 3247 views
  • 1 like
  • 2 in conversation