You probably want to use proc summary with ID as a by variable, but you would have to provide some info about your data to get more specific guidance. It always helps to provide a sample data file (in datastep form), along with your desired result, to get the best feedback.
... View more