Previous Page | Next Page

Concatenating SAS Data Sets

Review of SAS Tools


Statements

LENGTH variable(s) <$> length;

specifies the number of bytes that are used for storing variables.

SET SAS-data-set(s);

reads one or more SAS data sets and creates a single SAS data set that you specify in the DATA statement.


Procedures

PROC APPEND BASE=base-SAS-data-set <DATA=SAS-data-set-to-append> <FORCE>;

appends the DATA= data set to the BASE= data set. base-SAS-data-set names the SAS data set to which you want to append the observations. If this data set does not exist, then SAS creates it. At the completion of PROC APPEND the base data set becomes the current (most recently created) SAS data set. SAS-data-set-to-append names the SAS data set that contains the observations to add to the end of the base data set. If you omit this option, then PROC APPEND adds the observations in the current SAS data set to the end of the base data set. The FORCE option forces PROC APPEND to concatenate the files in situations in which the procedure would otherwise fail.

Previous Page | Next Page | Top of Page