SAS PROGRAMMING HANDOUT #5 DATA SET MERGES There are several ways to combine and/or subset data sets. Suppose AA and BB are data sets, with number of observations na, nb. DATA CC; SET AA; This just gives a new name to the data set AA. DROP X1 X2; And drops the X1 and X2 variables. WHERE X=2; These two statements select observations with X=2 IF X=2; DATA DD; SET AA; IF 1