Home > Data Services > Catalog . Restricted Data . Census . ACS

Search Data Services

Meta Search
search across all the following databases:

Data Catalog
Data and documentation

KnowledgeBase
Common questions and answers.

Resources
Entire collection of data resources.


Latest Data News

RSS Feed icon

Breaking News: Protect the 2020 Census

The Fastest Growing US Cities Are Mostly In the West

Another rule from NIH: Demographers might get to ignore this one

Research on Health Disparities: Incarceration Matters

Changing Race From One Census to the Next

Data Services Knowledge Base

Q:  

I know SAS on unix can read compressed data. Can SAS for the PC read compressed data?

A:  

Yes, it can. Here's code drawn from the SAS knowledgebase:

/******************************************************/
/* The syntax parameters for wzunzip are: /
/
/
/
specify the location of the downloaded add-on /
/
-o = overwrite existing file /
/
-c = display contents of file to screen /
/
name of zip file /
/
name of file inside of zip to be read /
/
/
/
Note the contents of the zipped file are read /
/
directly, no extraction is performed. /
/
*****************************************************/

filename foo pipe '"c:\program files\winzip\wzunzip.exe"
-o -c c:\sample015841data.zip testfile.txt';

/* The zip file, sample015841data.zip, is flat file created /
/
from PROC Export and SASHELP.CLASS. */

data test;
/* Use FIRSTOBS= to skip the first 8 records related to zip /
/
information, and the 9th record which contains a header /
/
record of variable names from SASHELP.CLASS. */
infile foo firstobs=10 truncover dsd;
input name :$9. sex :$1. age height weight;
run;

proc print;
run;

Annotated Resources:

Direct Links:

Related Question Groups: