Previous Page | Next Page

Concatenating SAS Data Sets

Introduction to Concatenating SAS Data Sets


Purpose

Concatenating combines two or more SAS data sets, one after the other, into a single data set. The number of observations in the new data set is the sum of the number of observations in the original data sets.

You can concatenate SAS data sets by using

If the data sets that you concatenate contain the same variables, and each variable has the same attributes in all data sets, then the results of the SET statement and PROC APPEND are the same. In other cases, the results differ. In this section you will learn both of these methods and their differences so that you can decide which one to use.

Prerequisites

Before continuing with this section, you should be familiar with the concepts presented in Starting with SAS Data Sets through Working with Character Variables.

Previous Page | Next Page | Top of Page