The BY statement is used by the BY-group processing so that it can process data that are indexed, grouped, or ordered based on variables.