Chapter 12: Combining SAS Data Sets
-
Which program will combine Brothers.One and Brothers.Two to produce Brothers.Three?
-
data brothers.three; set brothers.one; set brothers.two; run;
-
data brothers.three; set brothers.one brothers.two; run;
-
data brothers.three; set brothers.one brothers.two; by varx; run;
-
data brothers.three; merge brothers.one brothers.two; by varx; run;
Correct answer: aThis example is a case of one-to-one matching, which requires multiple SET statements. Where same-named variables occur, values that are read from the second data set replace those read from the first data set. Also, the ... -
Get SAS Certification Prep Guide: Base Programming for SAS 9, Third 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.