3. Which one of the following displays the definition of a stored SQL procedure view in the SAS log?
A. ECHOVIEW option
B. EXPANDVIEW option
C. VALIDATE VIEW statement
D. DESCRIBE VIEW statement
정답 : D
view 에 대한 정의를 보여주는 명령문을 묻는 문제네요. 즉, SQL에 저장된 view의 Definition을 보고자 하는데요, 그럴 땐, Descirbe view 라는 명령어를 써주시면 됩니다.
*참고 - Prep Guide 262 페이지.
DESCRIBE VIEW proc-sql-view-1<,...proc-sql-view-n>;
Describe view의 사용 포맷은 위와 같습니다.
4. The following SAS program is submitted:
data temp;
array points{2,3} _temporary_;
run;
Which one of the following is the maximum number of elements that are stored?
A. 2
B. 3
C. 5
D. 6
정답 : D
덤프 2번과 동일한 유형의 문제네요. 이러한 문제는 꼭 출제된다고 보시면 됩니다. Array 의 구조에 대해 묻는 문제인데, array x{a,b} 는 행이 a개, 열이 b개인 행렬을 정의하는 것입니다. 즉,
[ ] [ ] [ ]
[ ] [ ] [ ]
모양의 배열을 정의하는 것입니다. 들어갈 수 있는 원소의 갯수는 총 6개가 되겠지요?
5. The DICTIONARY.MACROS table stores information about which of the following?
A. user defined macro variables only
B. system defined macro variables only
C. both user and system defined macro variables
D. macros stored in the autocall macro library only
정답 : C
해설 : 매크로 변수에는 크게 두가지 종류가 있는데, 하나는 시스템 정의 변수이고, 하나는 User 정의 변수 입니다. 시스텝 정의 변수는 SAS를 시작할 때부터 정의되어 있는, Default 변수이고, User 정의는 사용자가 정의한 매크로 변수가 되겠지요.
Dicitionary.Macros 는 명령어가 뜻하는 바와 같이, 모든 매크로 변수를 보여주는 사전 역할을 합니다.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.