Interleaving SAS Data Sets |
The BY statement specifies the variable or variables by which you want to interleave the data sets. In order to understand interleaving, you must understand BY variables, BY values, and BY groups.
is a variable that is named in a BY statement and by which the data is sorted or needs to be sorted.
is the set of all observations with the same value for a BY variable (when only one BY variable is specified). If you use more than one variable in a BY statement, then a BY group is a group of observations with a unique combination of values for those variables. In discussions of interleaving, BY groups commonly span more than one data set.
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.