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.
PROC EXPORT can do this.
Base SAS® 9.4 Procedures Guide, Seventh Edition - EXPORT Procedure
Best wishes,
Jeff
PROC EXPORT can do this.
Base SAS® 9.4 Procedures Guide, Seventh Edition - EXPORT Procedure
Best wishes,
Jeff
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
I wish to do this through Java or scala program.
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
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.
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.