BookmarkSubscribeRSS Feed
hadim001
Calcite | Level 5

We have some clients who still require SAV files for use in SPSS. When using PROC EXPORT and DBMS=SAV (or DBMS=SPSS), the files created are absolutely massive. A data file that would normally be about 200mb in SPSS is running ~ 880mb when exported. One easy example to replicate is a doing a PROC IMPORT followed immediately by a PROC EXPORT and the file goes from 10mb to 80mb. 

 

In the PROC EXPORT documentation, it states that .SAV files can be: "SPSS files, compressed and uncompressed binary files". For the life of me I cannot find anywhere that references compressing a .SAV during the PROC EXPORT procedure. Is this possible in SAS?

 

And no, we cannot deliver as a .zip file.

 

Syntax is super basic, but if it helps:

proc export file="/my/path/to/testdataexportedfromsas.sav"
			dbms=sav
			replace
			data=sasdataset;
run;

 

Thanks!

3 REPLIES 3
neeld1
Fluorite | Level 6

Hello, even I'm facing the same issue. 

 

It would be great if someone could help out.

 

Regards,

Neel

SASKiwi
PROC Star

@neeld1  - I had a quick look at this and from what I can see SAS can read compressed SPSS SAV files but not necessarily create them - at least I can't see any option for compressing. 

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!

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.

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
  • 3 replies
  • 1391 views
  • 0 likes
  • 4 in conversation