Now I have another question. If I am creating values for the combinations (as I think is the best solution), my second data file that has only one Var X with multiple numbers must also be renamed (with the keys that would correspond to the combinations). Sas is saying that X has an incorrect numeric variable for the entries (obs) with 1,3 or 2,3 and so on. The renaming commands below do not work: if (X =1 and X= 2) then X=6; or if x=1,2 then x=6 Sas does not recognize 1,2 as a correct number or the way I broke it apart in the first example. Would an array work better here then ? If so, how can I work with these values separated by commas in var X? My second data set looks like this (in SPSS): Obs VAR X 1 3 2 1,3 3 2,5 4 1,2,3,4 5 1 6 1,3 etc and it needs to look like Obs VAR X 1 3 2 7 3 15 4 11 5 1 6 7 Thanks again
... View more