QUESTION NO: 32카테고리 없음2019. 3. 10. 22:54
Table of Contents
반응형
QUESTION NO: 32
Given the raw data file EMPLOYEE: ----I----1 0---I----20---I----30
Ruth 39 11
Jose 32 22
Sue 30 33
John 40 44
The following SAS program is submitted: data test;
infile'employee';
input employee_name $ 1-4;
if employee_name = 'Ruth'
then input idnum 10-11;
else input age 7-8;
run;
What value does the variable IDNUM contain when the name of the employee is "Ruth"?
A. 11
B. 22
C. 33
D. (missing numeric value)
Answer: B
Solution :
employee_name |
idnum |
age | |
Ruth |
22 |
||
Sue | 40 |
위를 실행하면 위와 같다 .
여기서 중요한 것은 input할 때 , 하나의 column을 읽어 온다는 것이다 .
반응형
@IT grow. :: IT grow.
#IT #먹방 #전자기기 #일상
#개발 #일상