Hello everyone, first time poster, and I would really appreciate your help. Hopefully in laymens terms, since Im not super advanced with SAS. Though I use it quite a bit, I have a hard time if the code is not narrated. So I have two variables.... and I want to compare the number combinations (separated by a comma) in column 1 with the number combinations (separated by a comma) in column 2. Every time my 'code new' variable has a number combination that is not in 'code old,' i want to have a count created as a separate variable. Im hoping that the count variable tabulates the number of codes (if any) in the 'code new' variable that are not in the 'code old' variable. Furthermore, each observation may have differing amounts of number cominations to be compared. Let me illustrate with an example Code Old (column 1) Code New (column 2) Count 6222,6233,7645,6555 6233,6555,6222,7645 0 7222, 7212, 7233, 7244,7555 7244,7233,7222 0 5444, 5441 7244,5444 1 So while I dont care if a code is in the 'code old' set, but not found in the 'code new' set. I DO want it to count if a number is in the code new set that is not in the code old set... I hope this sounds clear. While I feel like I could easily do it in excel, Im really struggling with it in SAS. And the dataset Im coding is too big for excel. Thanks for your help in advance! Advice is appreciated.
... View more