@Satori ,
I'm not sure you understand what you are asking for here. Let's say you have three ID variables:
id idvar1 idvar2 idvar3;
The values in the output data set are NOT the maximum values of each. (Yes, that would give you the non-missing, if there is both a missing and a non-missing.) But the values selected for ID variables are computed sequentially. https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1niocuk07q2wnn16mz96fboupgc.htm
This means you get the maximum of idvar1. But you don't necessarily get the maximum of idvar2 or idvar3. Instead, SAS selects in this manner. For all observations that have the maximum value of idvar1, what is the maximum value of idvar2. There may be observations that have a lower value for idvar1, and a higher value for idvar2. SAS doesn't consider those. It only looks at observations having the maximum value for idvar1, when selecting the maximum value for idvar2. So it's the last observation per ID (your CLASS variable) if the data were sorted by ID idvar1 idvar2 idvar3.
... View more