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

Search Data Services

Meta Search
search across all the following databases:

Data Catalog
Data and documentation

Common questions and answers.

Entire collection of data resources.

Latest Data News

RSS Feed icon

Opoid Use and Labor Force Participation

The Future of Free Public Access to Government Information

The Promise of Evidence-Based Policymaking

News: Certificate of Confidentiality

Stanford Open Policing Project

Data Services Knowledge Base


I am working with NELS data (base year, first follow-up and second follow-up). When I tried to extract the variables from raw data using the SAS setup cards provided by ICPSR, I do not get the right number of cases – way too few.


The problem is in the setup files; these are sometimes dated and no longer work. The specific issue in your case is the setup file does not have a an LRECL statement.

SAS has a default of 256 columns of data that it will read. If the record is longer than that and there is no LRECL statement, SAS will go to the next record to continue reading in the variables. You end up with garbage for your variables and as you have noticed, you end up with too few cases.

The following is an example of where to put the LRECL statement:


Annotated Resources:

Direct Links:

Related Question Groups: