O'Reilly logo

Step-by-Step Programming with Base SAS 9.4 by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required