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 Multiple Records to Create a Single Observation

How the Data Records Are Structured

An earlier example (see Reading Character Data That Contains Embedded Blanks) shows data for several observations that are contained in a single record of raw data:
1023 David Shaw       red 189 165
This INPUT statement reads all the data values arranged across a single record:
input IdNumber 1-4 Name $ 6-23 Team $ StartWeight EndWeight;
Now, consider the opposite situation: when information for a single observation is not contained in a single record of raw data but is scattered across several records. For example, the health and fitness club data could be constructed in such a way that the information about a single member is spread across several records ...

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