Reading compressed data in SAS

SAS has the capability to read input files that are in UNIX compressed format (.Z). Within your filename statement you will use a combination of the zcat command paired with the PIPE command. Below is an example that is reading compressed ascii data from the /usr/shared drive.

filename pums90 PIPE 'zcat /usr/shared/sb/mi26.Z';
data hh;
  infile pums90;
  input ID 2-8 state $11-12 . . .

NEW PSC blog

Recent resources, events, news

New Publications

Burgard & Lee-Rife. "Community Characteristics & Sexual Behavior." PSC Research Report.

Walsemann, Geronimus & Gee. "Accumulating Disadvantage"

Next Brown Bag

Seminars will start up again in fall 2008
Check for new schedule


W A R N I N G

If you are reading this, it may be that you are using rather old web browsing software that does not support modern international Web technology standards. For a better experience of the Web and this site in particular, please upgrade your web browser software today. The following are good choices: Firefox 2; Opera 9; Safari 3.