49. 문제 프린트 오류로 스킵하겠습니다.
50. Given the data set SASHELP.CLASS:
SASHELP.CLASS
NAME AGE
--------- ---------
Mary 15
Philip 16
Robert 12
Ronald 15
The following SAS program is submitted:
%let value = Philip;
proc print data = sashelp.class;
<insert WHERE statement here>
run;
Which WHERE statement successfully completes the program and procedures a report?
A. Where upcase(name)=%upcase(&value);
B. Where upcase(name)="upcase(&value)";
C. Where upcase(name)=upcase(&value);
D. Where upcase(name)="%upcase(&value)";
정답 : D
해설 : 매크로 변수와 일반 함수의 차이를 아셔야합니다. upcase(name)의 경우 매크로 변수가 아니기 때문에 큰따옴표를 붙여줘야 인식합니다.그러므로 B와 D가 답이 되는데, 매크로 변수 사용시에는 %기호를 붙여줘야하니 D가 답이 됩니다.
51. Given the SAS dataset ONE
ONE
SALARY
---------
200
205
523
The following SAS program is submitted
proc sql;
select * from one
<insert Where expression here>;
quit;
The following output is desired:
SALARY
----------
200
205
523
Which WHERE expression completes the program and generates the desired output?
A. Where salary is not
B. Where salary ne null
C. Where salary is not missing
D. Where salary ne missing
정답 : C
해설 : 아웃풋이 그대로 나오는 걸 보니, 결측값이 아닌 값들을 출력하라. 인 것 같네요.
그러므로 "Is not missing"문을 사용하시면 됩니다.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.