Help using Base SAS procedures

PROC EXPORT

Reply
Contributor
Posts: 22

PROC EXPORT

I am using the function which is converting my data well however the output is uncompressed. my input file is compressed & after exporting i noticed that my 2g file has ballooned to 10g. I have tried compress statements but they are ignored.

is there anyway I can compress this data when exporting it? The goal is to upload this data onto a flash drive.

options compress=binary;
proc export data=test.temp(compress=BINARY)
outfile='D:\XPORT\temp.dat'
dbms=sav;
run;
Super Contributor
Super Contributor
Posts: 3,174

Re: PROC EXPORT

The SAS COMPRESS= option refers to compressing SAS members. Not sure if you can export to an SPSS-format and have it be compressed.

Scott Barry
SBBWorks, Inc.
Contributor
Posts: 22

Re: PROC EXPORT

yeah im thinking the same. Thanks
Trusted Advisor
Posts: 2,115

Re: PROC EXPORT

Since you appear to be on a Windows platform, you can just use the OS to do the compression. Use Windows Explorer to navigate to the directory, right click on the directory name, select "properties", select "general", select "advanced", check the box to compress the directory contents. That compresses all files in, or newly created in, the directory.

You can also compress a single existing file the same way.

Once a file or directory is compressed, you can look at the properties again to see how much space is actually used on the disk for the file.

Doc Muhlbaier
Duke
Ask a Question
Discussion stats
  • 3 replies
  • 124 views
  • 0 likes
  • 3 in conversation