I am new to CNTLIN and tried to make use of it and failed. I have the following table ID, SSN and COMP_SSN and I have to create then new column MULTI_FLAG Where the combination of SSN & COMP_SSN is repeated, then the entire ID row has to be tagged as Y. data DS_To_Flag; input ID SSN $ COMP_SSN $; datalines; 123 999 0 333 666 987 444 765 0 9996 987 0 876 8889 999 777 8889 0 ; run; e.g: For the row where ID = 333 -> SSN of 666 is unique, while COMP_SSN of 987--- the same 987 does exist in SSN List...hence Multi_flag will be Y.. *Wanted Column -> MULTI_FLAG ID SSN COMP_SSN MULTI_FLAG 123 999 0 Y 333 666 987 Y 444 765 0 N 9996 987 0 Y 876 8889 999 Y 777 8889 0 Y I am trying to achieve this by CNTL... IF not please suggest the resolution in creating the new MULTI_FLAG * I need the new flag column as Multi_Flag
... View more