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

American Community Survey (ACS) Data Products Survey

Big Data in 1848

ACS Median Earnings by Detailed Occupation

Big Government and Big Data

PAA President Ruggles wants you to write a letter

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: