SAS Base, A00-211 Crambible 

SAS 베이스 자격증 


QUESTION NO: 76


Which statement specifies that records 1 through 10 are to be read from the raw data file customer.txt?


A. infile 'customer.txt' 1-10;
B. input 'customer.txt' stop@10; 

C. infile 'customer.txt' obs=10; 

D. input 'customer.txt' stop=10;


구문 중에서 어떤 구문이 자료 obs1부터 10까지 읽는지 찾는 문제인데요. infile로 파일을 불러오고 obs를 10으로 지정해주면 됩니다. 즉, 10번 obs까지라고 불러오는데 어디서부터 불러오라는지 지정되어있지 않아서 default 값으로 첫번째 값부터 불러오게 됩니다. 


만약 firstobs를 지정해주고 싶으면, 다음처럼 firstobs=숫자 를 넣어주면 됩니다.  

infile 'customer.txt' firstobs=숫자 obs=10; 



Answer: C


반응형

+ Recent posts