Data Set [13-14]
Export a SAS Data Set into a Text file
Exporting the data into a Text file is similar to an Excel spreadsheet.
Proc Export Data=Income
[Note: The code above might get cut off due to shortened screen's width. Expand the web page for this session if needed.]
Pay attention to the following when exporting to a Text file:
1. File Extension
Use (.txt) as the file extension when exporting to a Text file.
2. DBMS option
You can use the DBMS option to select the type of delimiter when exporting to a Text file.
This will create a tab-delimited file.
This will create a comma-delimited file.
Export the ELECTRIC data set into a Text file.
Use Tab as the data delimiter.
Need some help?