The observations in the SAS data set WORK.TEST are ordered by the values of the variable SALARY.
The following SAS program is submitted:
proc sort data = work.test out = work.testsorted;
by name;
run;
Which one of the following is the result of the SAS program?
A. The data set WORK.TEST is stored in ascending order by values of the NAME variable.
B. The data set WORK.TEST is stored in descending order by values of the NAME variable.
C. The data set WORK.TESTSORTED is stored in ascending order by values of the NAME variable.
D. The data set WORK.TESTSORTED is stored in descending order by values of the NAME variable.
Click Comment link to get answer
C
ReplyDeleteC
ReplyDeleteC
ReplyDeleteC
ReplyDeleteC
ReplyDeleteC
ReplyDeleteC
ReplyDeletewhy c?
ReplyDeletewhen you write out=testsorted;
Deletethis proc only sort the testsorted in ascending order by name
and test stay as it is
and because it is sorted by salary it stills sorted by salary
C
ReplyDelete