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

Is it possible to convert as sas data file (.sas7bdat) to an ascii file?  We have data and a user is unable to use sas and needs the data in an ascii format.

I've never had to do this before and i'm unsure of where to start.  Any help would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Haikuo
Onyx | Level 15

Hi,

if you just have one file to convert, menu-driven would be the simplest. just double click the SAS table to open it up, then go to file -> export data , and follow through the steps.

If you want it automated done (probably with macros to deal with multiple files or reoccurring scenarios ) , then here is an example copied from Help doc to start with:

proc export data=sashelp.class

  outfile='c:\myfiles\class'

  dbms=dlm;

  delimiter='&';

run;

You can choose whatever delimiter, if you don't, the default is blank.

Haikuo

View solution in original post

2 REPLIES 2
Haikuo
Onyx | Level 15

Hi,

if you just have one file to convert, menu-driven would be the simplest. just double click the SAS table to open it up, then go to file -> export data , and follow through the steps.

If you want it automated done (probably with macros to deal with multiple files or reoccurring scenarios ) , then here is an example copied from Help doc to start with:

proc export data=sashelp.class

  outfile='c:\myfiles\class'

  dbms=dlm;

  delimiter='&';

run;

You can choose whatever delimiter, if you don't, the default is blank.

Haikuo

jerry898969
Pyrite | Level 9

Thank you so much that did what I needed.  Thanks

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4245 views
  • 0 likes
  • 2 in conversation