13.The following SAS program is submitted:
date view=sauser.ranch;
describe;
run;
What is the result?
A. The program creates a DATA step view called SASUSER.RANCH and places the program cod in the current editor window
B. The program retrieves the SAS source code that creates the view and places it in the output window
C. The program creates a DATA step view called SASUSER.RANCH and places it in the SAS log
D. the program retrieves the SAS source code that creates the view and places it in the SAS log
[정답] D
[풀이]
SAS Data Views는 데이터가 저장되지는 않지만 저장된 프로그램을 담고 있는 데이터 파일의 일반화된 데이터베이스 개념입니다.
그러므로, View의 타입은 담고 있는 코드에 따라 결정됩니다.
View의 특징은 실제의 데이터는 담고 있지 않지만 데이터가 사용되는 순간에 추출하고 가장 최근에 사용한 데이터에 접근합니다. 그래서 사용자가 코드를 수정하는 것을 방지하는 특징이 있습니다.
describe문을 사용하면data step view에서 프로그램의 소스코드를 가져올 수 있습니다.
(=view가 만들어진 후에 어떠한 코드가 담겨져 있는지 알 수 있습니다.)
14.Which SET statement option names a variable that contains the number of the observation to read during the current iteration of the DATA step?
A. NOBS=pointobs
B. OBS=pointobs
C. KEY=pointobs
D. POINT=pointobs
[정답]D
[풀이]
NOBS옵션은 SAS데이터셋에 있는 관측 수를 임시 변수에 할당합니다.
OBS옵션은 OBS=n 문법으로 n번째 개체까지만 데이터를 불러옵니다.
KEY옵션은 함께 SET문장을 사용하여 두 개의 데이터 셋 결합.
POINT옵션은 임시변수를 지정하는데 이 임시 변수의 숫자 값은 어떤 관측치를 읽는 것인지 결정.
15.Which SAS procedure changes the name of a permanent format for a variable stored in a SAS data set?
A. DATASETS
B. MODIFY
C. FORMAT
D. REGISTRY
[정답] A
[풀이]
PROC DATASETS: 기존 데이터 셋에서 인덱스를 작성하거나 삭제하고자 할 때, PROC DATASETS를 사용할 수 있습니다.(인덱스 생성 및 삭제에 대한 메시지를 씀)
*문법
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.