BookmarkSubscribeRSS Feed
navneet
Calcite | Level 5

how to open sas7bdat file in sas 9.1

2 REPLIES 2
Reeza
Super User
SAS 9.1 is old...get a newer version, if you're a student try the free version of SAS, SAS UE. You can set up a libname to read a SAS dataset. SAS Analytics U also provides two free SAS training courses on how to use SAS.

libname mydata '/folders/myfolders/';

proc print mydata.data;
run;
Kurt_Bremser
Super User

You do NOT need to "import" a .sas7bdat file, as it already is a table in native SAS format. The .sas7bdat format can (mostly) be opened across all SAS versions from 8.0 upwards.

 

So all you need to do is to define a SAS library with the LIBNAME statement, pointing to the directory where the .sas7bdat is stored, and - voila! - you can use libname.tablename anywhere a SAS table name is needed in your program.

 

If you experience problems doing this, you will have to supply additional information about your SAS environment (OS platform(s), logical/physical locations etc). And what is in your log if a statement fails to execute properly.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1891 views
  • 0 likes
  • 3 in conversation