This DATA step combines all the data sets that were created by the ODS OUTPUT statement. (The macro variable DATASETNAMES contains the list of names.)
data new; set &datasetnames; run;