One-to-One Reading: Details
One-to-One Reading Syntax
Use
multiple SET statements in a DATA step to combine data sets. One-to-one
reading combines rows from two or more data sets by creating rows
that contain all of the columns from each contributing data set. Rows
are combined based on their relative position in each data set. That
is, the first row in one data set is combined with the first in the
other, and so on. The data program stops after it has read the last
row from the smallest data set.
Syntax, DATA step for
one-to-one reading:
DATA output-SAS-data-set;
SET SAS-data-set-1;
SET SAS-data-set-2;
RUN;
|
Get SAS Certification Prep Guide, 5th Edition 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.