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 🙂

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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