O'Reilly logo

SAS Certification Prep Guide, 4th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appending SAS Data Sets

Overview

Now that you have seen several methods for concatenating raw data files, use the APPEND procedure to concatenate two SAS data sets.
General form, PROC APPEND:
PROC APPEND BASE=SAS-data-set DATA=SAS-data-set;
RUN;
Here is an explanation of the syntax:
BASE=SAS-data-set
names the data set to which you want to add observations.
DATA=SAS-data-set
names the SAS data set containing observations that you want to append to the end of the BASE= data set.
PROC APPEND reads only the data in the DATA= SAS data set, not the BASE= SAS data set. Therefore, this action is very efficient. PROC APPEND concatenates data sets even though there might be variables in the BASE= data set that do not exist in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required