SAS Base, A00-211 Crambible 

SAS 베이스 자격증


QUESTION NO: 91

The following program is submitted:


proc sort data=SASUSER.PROJECTS out=PSORT;

by Code descending Date Cost;
run;


Which of the following is true concerning the submitted program?


A. The descending option applies to the variable Code.
B. The variable Code is sorted by ascending order.
C. The PSORT data set is stored in the SASUSER library.
D. The descending option applies to the Date and Cost variables.


sasuser라이브러리에 있는 projects 파일을 정렬을 해서 work라이브러리에 있는 psort라는 파일로 내보내려고 합니다. 이때 by를 이용해서 Code는 오름차순으로, Date는 내림차순으로, Cost는 오름차순으로 정렬이 되고 있네요. 


이렇게 정렬할때 아무런 값이 없으면 default로 오름차순이 되고 있고요. 

내림차순으로 지정하고 싶으면 변수 앞에 지정해주면 됩니다. 


Answer: B 


반응형

+ Recent posts