SAS Base, A00-211 Crambible 

SAS 베이스 자격증 


QUESTION NO: 45


The following SAS program is submitted:

libname temp 'SAS data library'; 

data temp.sales;


merge temp sales work.receipt;
by names;
run;


The input data files are sorted by the NAMES variable:


What is the result?


A. The program executes successfully and a temporary SAS data set is created.
B. The program executes successfully and a permanent SAS data set is created.
C. The program fails execution because the same SAS data set is referenced for both read and write operations.
D. The program fails execution because the SAS data sets on the MERGE statement are in two different libraries.



만들고 있는 sales라는 데이터는 temp라는 라이브러리에 저장하고 있습니다. (data temp.sales;) 하지만 이 temp라이브러리는 libname 사용자 지정 영구 라이브러리이고요. (libname temp 'SAS data library'; ) 


c의 경우, 첫번째 temp는 영구 라이브러리에 있는 temp를 말하고 merge temp에서의 temp는 work에서 불러오는거라 same SAS 데이타셋은 아니고요. 


D의 경우, merge에서 중요한건 기준변수 즉 name에서 sorting이 되어있는지의 여부가 중요하지 얘네들의 library의 출처는 중요하지 않습니다. 



Answer: B 


반응형

+ Recent posts