Match-Merging: Details
Match-Merging Syntax
Match-merging
combines observations from two or more data sets into a single observation
in a new data set according to the values of a common variable.
When
match-merging, use the MERGE statement rather than the SET statement
to combine data sets.
Syntax, DATA step for
match-merging:
DATA output-SAS-data-set;
MERGE SAS-data-set-1
SAS-data-set-2;
BY <DESCENDING> variable(s);
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.