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