DATA output-SAS-data-set; INFILE 'raw-data-file-name’; INPUT <pointer control> 변수 informat ; <additional SAS statements> RUN; |
◀예제▶ formatted input.
홍길동 M231960/01/01 1,234.5 이준 M120960/01/02 2000 유관순 F181961/01/01 12345 |
|
변수 |
타입 |
위치 |
name |
문자 |
1-6 |
||
Gender |
문자 |
7 |
||
Age |
숫자 |
8-9 |
||
Date |
숫자 |
10-17 |
||
amount |
숫자 |
19-25 |
Data new;
Infile ‘raw-data-file’;
Input Name $6.
Gender $1.
Age 2.
Date yymmdd10.
Amount comma7. ;
Run;
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.