I am working in SAS Enterprise guide and want to combine three separate data sets into one data set. All data sets have one column with the same length, data type and column header:
My data looks as follows (three tables, 1 column each):
data1 data2 data3
apples apples apples
100 200 300
55 77 80
3422 32432 1234
I want my output data to look as follows (one table, 3 columns). The column headers should be changed to a name of my choice:
output_data
green_apples red_apples yellow_apples
100 200 300
55 77 80
3422 32432 1234
I've messed around with SAS merge statements and proc_sql, but from what I've seen I always need to add some common identifier (for BY statements or something of the like).
Is there a fast way of doing what I want?
Thanks up front for the help.