Multiple choice technology programming languages

PROC SORT data = temp out=new; BY JOBCODE Descending SALARY; RUN; Temp DATASET What will be the output??

  1. "temp" dataset sorted by jobcode in desending order and salary in ascending order

  2. "temp" dataset sorted by jobcode in ascending order and salary in descending order

  3. "new" dataset sorted by jobcode in ascending order and salary in descending order

  4. "new" dataset sorted by jobcode in descending order and salary in ascending order

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

PROC SORT creates the output dataset 'new' (not temp) sorted by JOBCODE in default ascending order, then by SALARY in descending order as specified by the DESCENDING keyword. The sorted output goes to the OUT= dataset, not the input.