Posts Tagged ‘ ZIP files ’

Reading and writing GZIP files with SAS

October 10, 2017
By
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 Read more »

Tags: , , ,
Posted in SAS | Comments Off on Reading and writing GZIP files with SAS

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

September 8, 2017
By

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 Read more »

Tags: , , ,
Posted in SAS | Comments Off on Using FILENAME ZIP and FINFO to list the details in your ZIP files

List the contents of your ZIP and gz files using SAS

October 16, 2016
By

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 Read more »

Tags: , , , ,
Posted in SAS | Comments Off on List the contents of your ZIP and gz files using SAS

Add files to a ZIP archive with FILENAME ZIP

March 4, 2016
By

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 Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Add files to a ZIP archive with FILENAME ZIP

Using FILENAME ZIP to unzip and read data files in SAS

May 11, 2015
By

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 Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Using FILENAME ZIP to unzip and read data files in SAS

Reading and updating ZIP files with FILENAME ZIP

January 29, 2014
By

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
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Reading and updating ZIP files with FILENAME ZIP

Using SAS and ODS PACKAGE to create ZIP files

January 28, 2014
By

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
Read more »

Tags: , , , ,
Posted in SAS | Comments Off on Using SAS and ODS PACKAGE to create ZIP files

Welcome!

SAS-X.com offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.

Sponsors







Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at: tal.galili@gmail.com
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.