Looking at the data, your objective is clear as mud. So here is an approach that might work, but will at least gets the dialog moving in a productive direction. First, create a data set with your "combined" variable: data want; set have; comb = cat(cat1, cat2, cat3); run; So both the original variables as well as the combined variable are now in your data. Or perhaps move in the other direction: data want: set have; v = var1; output; v = var2; output; v = var3; output; run; Next, conduct your analysis but use any variables you like. At the end, drop the variables or observations that you no longer need to return the data to its original form.
... View more