나루다루

SAS BASE Q16.length 본문

Study/SAS BASE

SAS BASE Q16.length

나루다루 2018. 2. 13. 01:50
728x90
반응형

QUESTION NO: 16

The following SAS program is submitted:

data work.accounting;

set work.department;

length jobcode $ 12;

jobcode='FAl';

run;

 

The WORK.DEPARTMENT data set contains a character variable named JOBCODE with a length of 5. What is the result?

 

A. The length of the variable JOBCODE is 3.

B. The length of the variable JOBCODE is 5.

C. The length of the variable JOSBODE is 12.

D. The program fails to execute due to errors.

 

 

Answer: B




# 문제 풀이

 - set work.department 구문이 가장 먼저 적용되므로 length는 5이다.

만약 length jobcode $ 12 구문이 set구문 위에 있었으면 length는 12가 된다.

728x90
반응형

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

SAS BASE Q18. sum & grandtotal / subtotal  (0) 2018.02.13
SAS BASE Q17. ods / Q66 참고.  (0) 2018.02.13
SAS BASE Q15.if & output  (0) 2018.02.13
SAS BASE Q14. 문자와 숫자의 비교  (0) 2018.02.13
SAS BASE Q13. read data & dlm [수정]  (0) 2018.02.13
Comments