Read ASCII file with comma or dash delimited data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | * This syntax shows how to read two different sample ASCII files. * Ray. *comma or dash delimited data. DATA LIST LIST(',', '-') / ID(f8.2) V2(f8.2) V3(f8.2) V4(f8.2) V5(f8.2). BEGIN DATA 1,123-12345-123-4 2,1-2345-6-7-4-66 3,12345-673-8-7890-11 4,56-2341-1232-8899-0 END DATA. LIST. *blank or dash delimited data. DATA LIST LIST(' ', '-') / ID(f8.2) V2(f8.2) V3(f8.2) V4(f8.2) V5(f8.2). BEGIN DATA 1 123-12345-123-4 2 1-2345-6-7-4-66 3 12345-673-8-7890-11 4 56-2341-1232-8899-0 END DATA. LIST. |
Related pages
...