
51BY-Group Processing in the DATA Step
4.2 Applications Utilizing BY-Group Processing
Longitudinal data does not always require BY-group processing when it is
read into a SAS data set. Instead, a program that uses BY-group processing
does so to identify either the beginning or the end of a measurement within a
BY group. Therefore, a DATA step that uses BY-group processing frequently
contains the following:
1. A cumulating variable is initialized to 0 when the FIRST ...