SAS Base, A00-211 Crambible 

SAS 베이스 자격증 


QUESTION NO: 57

Given the SAS data set PERM.STUDENTS:

PERM.STUDENTS NAME AGE --------- ------- 

Alfred 14
Alice 13
Barbara 13

Carol 14

The following SAS program is submitted: 

libname perm 'SAS data library';
data students;
set perm.students;
file 'file specification';
put name $ age; 

< insert statement here> 

run;


The following double-spaced file is desired as output 

Alfred 14
Alice 13
Barbara 13

Carol 14


Which statement completes the program and creates the desired file?

A. put
B. put/;
C. double;
D. put _null_;



set PERM.STUDENTS 즉, SAS 데이터가 perm이라는 라이브러리에 student라는 이름으로 저장되어있습니다. 이때 NAME과 AGE라는 변수를 가지고 있고요. 


students라는 데이타를 만들려고 하는데요. 이 perm 라이브러리에 있는 students 파일을 불러옵니다. 이렇게 만든 students 파일을 file 'file specification'; 라는 명령어로 파일을 넣으려고 하고요. put을 이용해서 name $ age 변수를 유지하려는데 어떤 명령을 넣으면 보기처럼 결과물을 가질 수 있을지 물어보는 문제입니다. 


결과물보면 double-spaced 파일로 지정하고 싶은것 같은데요. 


A. PUT  한칸씩 행을 벌려줍니다. 

B. PUT/; 두칸씩 행을 벌려줍니다. double-spaced가 아니라 triple-spaced가 됩니다. 

C. double; 에러가 발생하고요. 

D. PUT_NULL_ double-spaced이긴 하지만 벌린 행에 .(period)를 넣어줍니다. 


만약 < > 사이에 아무런 옵션도 넣지 않으면, 행과 행 사이 space 없게 됩니다. 



Answer: A 


반응형

+ Recent posts