Tag: FILENAME ZIP

Reading and writing GZIP files with SAS

SAS 9.4 Maintenance 5 includes new support for reading and writing GZIP files directly. GZIP files, usually found with a .gz file extension, are a different format than ZIP files. Although both are forms of compressed files, a GZIP file is usually a compressed copy of a single file, whereas […]

The post Reading and writing GZIP files with SAS appeared first on The SAS Dummy.

Using FILENAME ZIP and FINFO to list the details in your ZIP files

It’s time to share another tip about working with ZIP files in SAS. Since I first wrote about FILENAME ZIP to list and extract files from a ZIP archive, readers have been asking for more. Specifically, they want additional details about the files that are contained in a ZIP, including […]

The post Using FILENAME ZIP and FINFO to list the details in your ZIP files appeared first on The SAS Dummy.

List the contents of your ZIP and gz files using SAS

SAS programmers often resort to using the X command to list the contents of file directories and to process the contents of ZIP files (or gz files on UNIX). In centralized SAS environments, the X command is unavailable to most programmers. NOXCMD is the default setting for these environments (disallowing […]

The post List the contents of your ZIP and gz files using SAS appeared first on The SAS Dummy.

Add files to a ZIP archive with FILENAME ZIP

In previous articles, I’ve shared tips about how you can work with SAS and ZIP files without requiring an external tool like WinZip, gzip, or 7-Zip. I’ve covered: How to create ZIP files with ODS PACKAGE ZIP (available since SAS 9.2) How to “unzip” and read ZIP files using FILENAME […]

The post Add files to a ZIP archive with FILENAME ZIP appeared first on The SAS Dummy.

Using FILENAME ZIP to unzip and read data files in SAS

I’ve written about how to use the FILENAME ZIP method to read and update ZIP files in your SAS programs. The ZIP method was added in SAS 9.4, and its advantage is that you can accomplish more in SAS without having to launch external utilities such as WinZip, gunzip, or […]

The post Using FILENAME ZIP to unzip and read data files in SAS appeared first on The SAS Dummy.

Reading and updating ZIP files with FILENAME ZIP

In a previous post, I shared an example of using ODS PACKAGE to create ZIP files. But what if you need to read a ZIP file within your SAS program? In SAS 9.4, you can use the FILENAME ZIP access method to do the job. In this example, let’s pretend […]

Using SAS and ODS PACKAGE to create ZIP files

SAS users are big data consumers and big data creators. Often, we have to deal in large data files (or many smaller files) — and that means ZIP compression. ZIP compression tools such as gzip, 7-Zip, and WinZip are ubiquitous, but they aren’t always convenient to use from within a […]