SAS Base, A00-211 Crambible 

SAS 베이스 자격증 


QUESTION NO: 59

Given the contents of the raw data file EMPLOYEE: 

----|----10----|----20----|----30

Alan          19/2/2004 ACCT

Rob            22/5/2004 MKTG

MaryJane       14/3/2004 EDUC


The following SAS program is submitted:

data emps;

infile'employee';
input@1 name$
@15 date <insert INFORMAT here> @25 department$;
run;


Which INFORMAT correctly completes the program?


A. date9.
B. ddmmyyyy9. 

C. ddmmyy10. 

D. ddmmyyyy10.


emps라는 데이타를 만들때, input을 이용해서 name, date, deparment 변수를 만들고 있습니다. 


@1 쭉 불러서 name에 넣고 

@15 부터 date로 

@25 부터 department 넣어줍니다. 


이때 informat을 이용하는데요. 이는 데이터를 불러올때 format을 바꿀때 사용합니다.


답은 C. ddmmyy10. 경우 1960년 1월 1이 defalut year cut-off으로 며칠 지났는지 나오게 됩니다. 




Answer: C 




반응형

+ Recent posts