문제풀이/기타
SAS BASE Q7. tranwrd
나루다루
2018. 2. 12. 06:04
728x90
QUESTION NO: 7
The following SAS program is submitted:
data one;
address1= '214 London Way';
run;
data one;
set one;
address = tranwrd(address1, 'Way', 'Drive');
run;
What are the length and value of the variable ADDRESS?
A. Length is 14; value is '214London Dri'.
B. Length is 14; value is '214 London Way'.
C. Length is 16; value is '214 London Drive'.
D. Length is 200; value is '214 London Drive'.
Answer: D
# 문제 풀이
- tranwrd(변수, '기존값', '새로운값') : 변수 내의 기존값을 새로운 값으로 변환
- tranwrd 구문 사용 시, 길이(length)는 무조건 200
728x90
반응형