나루다루

SAS BASE Q7. tranwrd 본문

Study/SAS BASE

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
반응형

'Study > SAS BASE' 카테고리의 다른 글

SAS BASE Q9.rename  (0) 2018.02.12
SAS BASE Q8. do until & gt  (0) 2018.02.12
SAS BASE Q6. trim & || [수정]  (0) 2018.02.12
SAS BASE Q5. footnote  (0) 2018.02.11
SAS BASE Q4. if & output [수정] / 15,20번과 비교  (1) 2018.02.11
Comments