SAS Data

Overview

SAS can read data in many formats, including text (ASCII) files, SPSS portable files, database files, and Excel spreadsheets. The formats allowed vary across operating systems.

Once the data are read by the SAS program, they are converted into a SAS dataset which contains information about the names, values, formats, and labels of the variables. The data set may be stored temporarily, for the duration of the program, or it may be stored permanently for re-use in other SAS programs.

The first section of this document shows how to prepare a raw (text) data set. The second section explains how to create a permanent SAS data set.


Raw Data

SAS Data Sets

How to Create SAS Data Sets in a Data step

For examples of SAS programs using permanent SAS Data Sets, please refer to the Sample SAS Command Files Page .


Return to Top Document