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

Lessons from North of the Border

Nerd Alert: Dictionary of Numbers

International Migration Statistics for the US

Open Data Executive Order

Measuring Marriage & Divorce among Same-Sex Couples

Reading part of a data file: OBS=

The OBS= option can be used anytime a user wants to read only a part of their raw datafile. It tells SAS to stop reading input when it gets to that line. This does not necessarily correspond to the number of observations (i.e., 2 data lines for each observation would yield 50 observations when OBS=100 is set in the infile statement.)
DATA race;
 INFILE '/usr/shared/sb/white.dat' OBS=100;
 INPUT age sex ...