kunkunred 发表于 2012-6-23 03:33 
Here is another solution:
proc summary data=temp nway missing;
Can we keep values of other variables in the output table?
By using the two solutions, I can only keep the ID, Datadate and the variable for summary.
Thank you a lot!