ABSTRACT

A SAS® data set is often created by reading data directly from an external text file. Observations (rows) and variables (columns) in the SAS data set correspond to records and the fields in the text file. You can go in the opposite direction and create a text file from a SAS data set. This section provides an overview for reading and writing text files, as well as an introduction to SAS informats and formats.