Chapter 6. Modifying and Combining SAS® Data Sets

 

“I usually say, ‘The computer is the dumbest thing on campus. It does exactly what you tell it to; not necessarily what you want. Logic is up to you.”

 
 --NECIA A. BLACK, R.N., PH.D.

From the SAS L Listserv, May 6, 1994. Reprinted by permission of the author.

6.1

Modifying a Data Set Using the SET Statement

170

6.2

Stacking Data Sets Using the SET Statement

172

6.3

Interleaving Data Sets Using the SET Statement

174

6.4

Combining Data Sets Using a One-to-One Match Merge

176

6.5

Combining Data Sets Using a One-to-Many Match Merge

178

6.6

Merging Summary Statistics with the Original Data

180

6.7

Combining a Grand Total with the Original Data

182

6.8

Updating a Master Data Set with Transactions

184

6.9

Using SAS Data Set Options ...

Get The Little SAS® Book: A Primer, 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.