Read ASCII file with FIXED Data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | *This shows how to read inline fixed ascii data. * Ray. DATA LIST /ID 1-3 SEX 5 (A) AGE 7-8 OPINION1 TO OPINION5 10-14. BEGIN DATA 001 F 27 12341 002 M 53 23121 003 F 60 11 11 004 M 41 21211 005 F 19 4 43 END DATA. LIST. * Note that missing data correctly come out as missing. * Assuming the above data were in a data.txt file in c:\\temp\\ folder, the following line would read the file. DATA LIST FILE="C:\\temp\\data.txt" /ID 1-3 SEX 5 (A) AGE 7-8 OPINION1 TO OPINION5 10-14.. |
Related pages
...