카테고리 없음

QUESTION NO: 21

IT grow. 2019. 3. 9. 23:18
반응형

QUESTION NO: 21  

The following SAS program is submitted: 

data work.sales; 

do year = 1 to 5; 

do month = 1 to 12; 

x+ 1; 

end; 

end; 

run; 

How many observations are written to the WORK.SALES data set? 

 

A. 0  B. 1  C. 5  D. 60  

Answer: B 


Solution : 


다음 처럼 값들이 쌓이게 된다 . 그런데 , output이 없기 때문에 , 값들이 덮어씌어지게 된다 . 

 year

month 

 1

 1

 1

 

 2

 2

 

 3

 3

 

 4

 4

 

 5

 5

 

 6

 6

 

 7

 7

 

 8

 8

 

 9

 9

 

 10

10 

 

11 

11 

  12 12


최종 출력값은 다음과 같다 . 


year 

month 

 12

 60


observations : 1 개 


반응형