BookmarkSubscribeRSS Feed

SAS Certified Advanced Programmer 덤프 풀이 86-88

Started ‎06-23-2020 by
Modified ‎06-23-2020 by
Views 417

SAS Certified Advanced Programmer 덤프 풀이 86-88

 

 

86.Given the following SAS data set ONE:

 

SAS코리아_0-1592904189055.png

 

 

The following SAS program is submitted:

proc sql;

                select rep, area, count(*) as TOTAL

                from one

                group by rep, area;

quit;

 

Which one of the following reports is generated?

 

[정답] A,B,C,D 모두 정답이 아닙니다.

SAS코리아_1-1592904189057.png

 

[풀이]

SELECT: 결과값에 지정한 변수만 가져오는 함수입니다.

TOTAL변수는 GROUP BY 사용해 REP AREA를 기준으로한 모든 행의 개수가 얼마나 되는지 숫자로 표현합니다.

GROUP BY: 기준 변수를 이용해 데이터를 요약하는 함수입니다.

[코드]

SAS코리아_2-1592904189064.png

 

 

 

 

  1. Given the following SAS data set SASUSER.HIGHWAY:

The following SAS program is submitted

SAS코리아_3-1592904189070.png

 

 

How many reports are produced by the above program?

 

A. 0

B. 1

C. 2

D. 5

 

 

[정답] B

SAS코리아_4-1592904189071.png

 

[풀이]

SQL SELECT INTO을 보면 한 테이블에서 새로운 정보를 복사할 때 사용합니다.

문법은

SAS코리아_5-1592904189072.png

 

으로, SELECT를 통해 새로운 컬럼을 선택할 수 있습니다.

 

SAS코리아_6-1592904189073.png

 

매크로 highway를 생성합니다.

SELECT를 통해 결과값에 지정한 변수만 가져오는 함수로, COUNT 변수(STATUS칼럼에 대해 중복을 제거합니다.)가 있는 :numgrp테이블을 생성합니다.

SAS코리아_7-1592904189074.png

 

%LET XXX=YYY는 매크로 XXX YYY로 출력되는 매크로를 생성한다는 명렁어 입니다.

&XXX은 매크로 XXX를 출력하는 명령어입니다.

SAS코리아_8-1592904189075.png

 

매크로용 DO명령어를 통해 매크로 변수 i를 생성합니다. I1부터 &numgrp까지 시행합니다.

2개의 관측값을 데이터 highway에서 읽을 수 있습니다.

WHERE status=’not’과 WHERE status='serious'

 

 

  1. Text is sent to the SAS compiler as a result of macro execution. Which one of the following SAS system options writes that text to the log?

 

A. MPRINT

B. MLOGIC

C. MSOURCE

D. SOURCE2

 

 

[정답] A

[풀이]

MPRINT는 매크로에 의해 생성된 SAS STATEMENT SAS LOG에 출력합니다.

예상치 못하게 생성된 코드 내에 버그가 있다고 의심될 때 사용합니다.

에러가 중간에 어디에서 생겼는지 확인할 때 유용합니다.

 

 

Contributors
Version history
Last update:
‎06-23-2020 05:53 AM
Updated by:

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Article Labels
Article Tags