Reading Unaligned Data
Understanding List Input
The
simplest form of the INPUT statement uses list input. List input is
used to read data values that are separated by a delimiter character
(by default, a blank space). With list input, SAS reads a data value
until it encounters a blank space. SAS assumes that the value has
ended and assigns the data to the appropriate variable in the program
data vector. SAS continues to scan the record until it reaches a non-blank
character again. SAS reads a data value until it encounters a blank
space or the end of the input record.
Program: Basic List Input
This program uses the
health and fitness club data from Introduction to DATA Step Processing to illustrate a DATA step that uses list input in an INPUT ...
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.