10-13-2014 11:11 AM
There are duplicate identifiers in my dataset. Regardless, each has a different area code. I need to flag where the same id appears under a different area code. I'm sure there's a straightforward solution, just not sure what it is. Can anyone help? Thanks in advance.
10-13-2014 12:22 PM
Thank you, I figured it would be a proc sql. But, where can I insert a command for a separate column (e.g., diff_area_code_flag = 1)?
10-13-2014 09:36 PM
select *,case when count(distinct area_code)>1 then 1 else 0 end as diff_area_code_flag
group by id;