SAS Base, A00-211 Crambible 

SAS 베이스 자격증 


QUESTION NO: 50


The following SAS program is submitted, creating the SAS data set ONE: 


data one;
infile 'file specification';
input num chars$;

run;


ONE

NUM CHAR

1 23
3 23
1 77


The following SAS program is submitted: 

proc print data = one;

where char = 23; 

run;


What is output?

A. NUM CHAR 1 77

B. NUM CHAR 1 23 3 23
C. NUM CHAR 1 23 3 23 1 77 

D. No output is generated.


input num chars$; 을 보니 num은 숫자형 변수이고, chars는 문자형 변수라는걸 알 수 있습니다. 그런데 where에서, where char = 23; 즉 숫자형 변수를 찾고있어서 결과가 생성되지 않습니다. 


Answer: D 



반응형

+ Recent posts