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

U.S. Department of Education Releases College Scorecard Data

Big changes coming to IRBs . . . . still time to comment

Will this be an election issue in the US?

U.S. and World Population Clock Has Been Updated with New Features

2013 Income, Poverty, and Health Insurance data

Caution: Default record length

The default record length for input and output raw ASCII files is 256 characters. If the input statement is identifying variables beyond the 256th column, SAS goes to the next line for the additional characters.

To solve this problem, identify the record length on the infile and/or file statement. In this example, both the input and output files are identified as being 500 columns wide.

data test;
infile '/usr/shared/test.dat' lrecl=500;
input sex 3-3  age 201-202  income 495-500;
file out lrecl=500;
put sex 3-3  age 201-202  income 495-500;

It does not hurt if you specify an LRECL larger than your actual record length.