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

Hi,

 

I have to export SAS7bdat file to csv. I tried using spark-sas7bdat package and R functions for SAS but both failed with large file. 

Please suggest the best way to export large sas file to csv. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
4 REPLIES 4
JBailey
Barite | Level 11

Hi @ShwetaMishra

 

PROC EXPORT can do this.

 

Base SAS® 9.4 Procedures Guide, Seventh Edition - EXPORT Procedure

 

Best wishes,
Jeff

art297
Opal | Level 21

Just use a data step. See: https://communities.sas.com/t5/SAS-Procedures/Proc-Export-for-large-files/td-p/188894

 

Art, CEO, AnalystFinder.com

 

ShwetaMishra
Calcite | Level 5

I wish to do this through Java or scala program. 

JBailey
Barite | Level 11

Hi,

 

The only way to read a SAS data set is through SAS. Your Scala or Java program would have to execute SAS in order to do this. There is an SAS ODBC driver, but that will use SAS to read the SAS data set.

 

Best wishes,

Jeff

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 14202 views
  • 0 likes
  • 3 in conversation