O'Reilly logo

The Little SAS® Book for Enterprise Guide® 4.1 by Lora D. Delwiche, Susan J. Slaughter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.13. Reading Delimited Raw Data

Delimited raw data files have a special character separating the data values. That character is often a comma (as in CSV or comma-separated values files), but it can also be a tab, semicolon, space, or some other character.

Input Data

This example uses data from a file named Eruptions.csv. There are four variables: the name of each volcano, followed by the date an eruption started, the date that eruption ended, and the Volcanic Explosivity Index (VEI). Notice that this file has commas between the data values, and the first line contains the column names.

Volcano, StartDate, EndDate, VEI Barren Island, 12/20/1795, 12/21/1795, 2 Barren Island, 12/20/1994, 06/05/1995, 2 Erebus, 12/12/1912, . , 2 Erebus, 01/03/1972, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required