Amadeus cookies policy - you'll see this message only once.

Amadeus use cookies on this website. They help us to know a little bit about you and how you use our website, which improves the browsing experience and marketing - both for you and for others. They are stored locally on your computer or mobile device. To accept cookies, continue browsing as normal. Or, go to the privacy policy for more information.

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

Exporting SAS data to a ZIP file 1

  • Use ODS PACKAGE to create ZIP files, this is useful for compressing data to better utilise disk space.

Exporting SAS data to a ZIP file 2

  • The resulting CSV file is stored as 11KB instead of it original size of 38KB by being zipped. The SAS Data set was 76KB.

Exporting SAS data to a ZIP file 3

Figure 1 ZIP file size

Exporting SAS data to a ZIP file 4

Figure 2 SAS Dataset file size