The DATASOURCE Procedure

Reading Data Files

The DATASOURCE procedure is designed to read data from many different files and to place them in a SAS data set. For example, if you have a DRI Basic Economics data file you want to read, use the following statements:

   proc datasource filetype=dribasic infile=citifile out=dataset;

Here, the FILETYPE= option indicates that you want to read DRI’s Basic Economics data file, the INFILE= option specifies the fileref CITIFILE of the external file you want to read, and the OUT= option names the SAS data set to contain the time series data.