search across all the following databases:
Data and documentation
Common questions and answers.
Entire collection of data resources.
How does one read strings in SAS? For instance, if I am reading in a name like Washtenaw County in a pipe delimted file?
Define the length of your variable before you read in the data. In the example below “name” is the field that has county names:
length name $40;
infile 'test.txt’ dlm='|';
input geoid $ name $ type part2000 part2010 ;