Thank you for the clarification. I am doing that just now and I'll see if it is working (it should). I am using a data step wit a set statement rather than union, because there are duplicates.