OUTPUT <SAS-data-set 명 SAS-data-set 명 … > |
◀예제▶ 하나의 입력 관측치마다 여러 출력 관측치 생성.
data new;
set sashelp.class;
length gubun $ 6 ;
gubun = 'Age';
data = age ;
output;
gubun = 'Height';
data = height ;
output;
gubun = 'Weight';
data = weight ;
output;
drop age height weight;
run;
◀예제▶ 하나의 Data Step으로 여러 Data Set 생성.
Ex2) 하나의 Data Step으로 여러 Data Set 생성.
Data female male;
set sashelp.class;
If sex = ‘여’ then output female;
else output male;
Run;
◀예제▶ Input Data 없이 관측치 생성..
Data new;
Length name $ 8;
Name = ‘홍길동’; age = 10 ; output;
Name = ‘이준’; age = 11 ; output;
Name = ‘신사임당’; age = 12 ; output;
Run;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!