In reply to Greg Lee.

PS. I do not understand your DATA step code. Can you give a full example of what you mean?