BookmarkSubscribeRSS Feed
jordan_howell
Calcite | Level 5

Hello,

 

I'm trying to read a sas7bdat file into a c environment.  However, no one on my team seems to be able to figure this out.  Is there any user out there that has done this? 

1 REPLY 1
ChrisHemedinger
Community Manager

The sas7bdat file format is not documented...and it varies slightly across releases as the format is enhanced.  Only SAS software can read the content and all of its attributes reliably.

 

However, you can (on Windows) use the SAS local data provider via OLE DB to read SAS data sets without having full SAS installed.  I have a PowerShell example here -- the same could be invoked within a C program.  You can download the SAS local OLE DB provider from SAS support (link in the blog).

 

If you have access to a SAS server and want to read SAS data from your SAS environment using other applications, look at the saspy Python library.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

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

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 746 views
  • 0 likes
  • 2 in conversation