SAS Certified Specialist: Base Programming Using SAS 9.4 — Question 3

The following SAS program is submitted:
proc sort data=SASUSER.VISIT out=PSORT;
by code descending date cost;
run;
Which statement is true regarding the submitted program?

Answer options

Correct answer: B

Explanation

The correct answer is B because the program does not apply the descending option to CODE, meaning it is sorted in ascending order by default. The descending option only affects DATE and COST, making option D true, but not relevant to CODE. Therefore, A and C are also incorrect regarding the sorting behavior.