Please I need assistance with Proc sort. I sorted a data set by two different variables; SALES and PRODUCT. I want the product variable to be sorted in descending order while the sales variable is sorted in ascending order. Here is my program: Proc sort data = sashelp.shoes out = work.sortedshoes; by sales descending product; run; The SALES variable gets sorted in ascending order but the PRODUCT variable was never sorted in descending order. I also re-instructed as below: Proc sort data = sashelp.shoes out = work.sortedshoes; by descending product; Proc sort data = work.shoes out = work.sortedshoes2; by sales; run; ....but the PRODUCT variable never still gets sorted in descending order. Please does anyone know what could be the issue? Thanks!
... View more