How to sort in descending order?



How to sort in descending order?..

Answer / Paritosh Verma

In SAS, you can sort data in descending order using the ORDER BY statement. To specify a descending sort, use the DESC option:

```
proc sort data=your_data;
by your_variable DESC;
run;
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

Describe the function and utility of the most difficult SAS macro that you have written?

1 Answers   Oracle,


How we will Developing new reports Using Data step programming and Macros ?

4 Answers  


: and & modifiers.

1 Answers   Oracle,


How to create list output for cross-tabulations in proc freq?

1 Answers  


Below is the table. Required to be output should be the highest number of each student_id. Example. Student_id Subject Marks 1 Hindi 86 2 Hindi 70 3 English 80 . Calculate sum and average marks for each group of student_id Example. Student_id Subject Marks Total Marks Average 1 English 40 181 60.33333 2 English 67 196 65.33333 3 English 80 160 53.33333 PLEASE PROVIDE THE CODE OF ABOVE PROBLEMS

1 Answers   Accenture, HSBC,


If money were no object, what would you like to do?

1 Answers   Oracle,


what do the pad and dim functions do? : Sas programming

1 Answers  


1.we can execute a macro with in a macro,by using call symput and symget can any one give me one example? 2.We can create the macro variables by using %let,%do,macro parameters,INTO clause in proc sql and call symput, can any one give me example to create macro variable with INTO clause and call symput? 3.

1 Answers  


tell me about intnx, intcx functions?

4 Answers   CitiGroup,


what are sas bi dashboard components? : Sas-bi

1 Answers  


Explain data step in SAS

1 Answers  


what is sas metadata server? : Sas-di

1 Answers  


Categories