Add observations to a data set to fill out each BY group so that the value of a specified variable consistently increments for every observation in the BY group.
The example uses the same input data set as Example 8.12.
|Featured Step||DATA step|
|Featured Step Options and Statements||BY-group processing, FIRST.variable and LAST.variable temporary variables, RETAIN statement|
|Related Technique||PROC MEANS, COMPLETETYPES, NOPRINT and NWAY options, ID and OUTPUT statements|
|A Closer Look ...|