Exporting SAS Data to a ZIP File
When archiving large SAS datasets, disk space can be an issue. One way to reduce the impact on disk space is to export the SAS dataset to a CSV and add the CSV to a ZIP file to compress it. The following example demonstrates this:
Use PROC EXPORT to export the SAS dataset as a CSV file
Use ODS PACKAGE to create ZIP files, this is useful for compressing data to better utilise disk space.
The resulting CSV file is stored as 11KB instead of it original size of 38KB by being zipped. The SAS Data set was 76KB.
Figure 1 ZIP file size
Figure 2 SAS Dataset file size