Hi, My requirement is i want to display max1 and max2 values from each group using grouping in datastep. Here is my dataset: data devil; infile datalines dlm=' ' dsd; input pincode order num_total ; datalines; 12345 1 99 23451 1 1 34512 1 10 45123 2 10 51234 2 13 67890 2 10 78901 3 11 89012 3 10 90123 3 20 ; run; Expected output: pincode order num_total 12345 1 99 34512 1 10 51234 2 13 45123 2 10 67890 2 10 90123 3 20 78901 3 11
... View more