Hi, I'm a new SAS user. Pls help me understand the difference in the following code. In the first code - rbc and wbc written right after "BY" statement are sorted in the ascending order. In the second code - rbc and cholesterol written after wbc is not sorted in ascending order. Why is that? As per my understanding, variables in "BY" statement are default sorted in ascending order. PROC SORT DATA = blood OUT = sorted_blood; BY rbc cholesterol DESCENDING wbc; run; PROC SORT DATA = blood OUT = sorted_blood; BY DESCENDING wbc rbc cholesterol; run;
... View more