Hello, i am searching for a solution to determine and put out the largest and second value in a proc freq analysis. The proc freq look as the follow: proc freq data = Personen (where = ( sex = '1' AND type in ('X','Y','Z') )); title 'Sex Types'; tables typ * geschlecht / NOROW NOCOL Nopercent format=commax18.0 out=WORK.sex_type; run; In Pesonen is a variable like 'tallness', with a numeric tallness value. Now i want to give out the tallest and the second tallest person in the defined group, each in an own column in the table above. Do you haven idea? T1000
... View more