나루다루

SAS BASE Q68. input @ (???) 본문

문제풀이/기타

SAS BASE Q68. input @ (???)

나루다루 2018. 11. 2. 01:22
728x90
반응형

QUESTION NO: 68

Given the SAS data set PEPM.STUDENTS: PERM.STUDENTS

NAME AGE

Alfred 14

Alice 13

Barbara13

Carol 14

 

The following SAS program is submitted:

libname perm 'SAS data library';

data students;

set perm.students;

file 'file specification';

put name $15. @5 age 2.;

run;

 

What is written to the output raw data file?

 

A. Alfred 14 Alice 13 Barbara 13 Carol 14

B. Alfr14 Alic13 Barb13a Carol 4

C. Alfr14ed Alic130 Barb13ara Caro141

D. Alfred14 Alice13 Barbara13 Carol14

 

 

Answer: B




# 문제 풀이

 - file : 파일 생성


 - name 변수에 길이 15를 할당하고 변수를 입력 -> 

input @1 변수 :  여기서부터 가져오겠다

put @1 변수 : 여기서부터 넣어주어라. 참조의 위치를 지정



728x90
반응형

'문제풀이 > 기타' 카테고리의 다른 글

SAS BASE Q70. find  (0) 2018.11.02
SAS BASE Q69. first/last  (0) 2018.11.02
SAS BASE Q67. 문자형/숫자형 변수  (0) 2018.11.02
SAS BASE Q66. ods html  (0) 2018.11.02
SAS BASE Q65. cat & catx & !!  (0) 2018.11.02
Comments