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 ...

NEW PSC blog

Recent resources, events, news

New Publications

Knodel et al. "Gendered Housework in Vietnam." PSC Research Report.

Couper. Designing Effective Web Surveys

Next Brown Bag

Monday, Oct 13
Jamie Jones
"Fertility & Risk Aversion on Utah Frontier"


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.