Multiple choice technology programming languages

You have to sort the dataset Temp by the values of salary in descending order. SORT procedure is given below. Find out the missing statement? Data temp; Infile datalines; Input empname $ salary; Datalines; AAA 25000 BBB 45000 CCC 36000 DDD 47000 ; Proc sort data=temp; <<<<<<>>>>>>>>>; Run;

  1. by descending salary

  2. by salary descending

  3. by salary ascending

  4. by salary

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In SAS, to sort a dataset in descending order of a variable, you must place the keyword 'descending' before the variable name in the BY statement, resulting in 'by descending salary'.