Summary

Statements

SET SAS-data-sets;
BY variable-list;
The SET statement reads multiple sorted SAS data sets and creates one sorted SAS data set. SAS-data-sets is a list of the SAS data sets to interleave.
The BY statement is used with a SET statement to perform BY-group processing. Variable-list contains the names of one or more variables (BY variables) by which to interleave the data sets. All of the data sets must be sorted by the same variables before you can interleave them.

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.