An easy way to export data is to use PROC PRINT to print the data with variable names over the columns, then cut the output from the SAS window and paste it into the spreadsheet. However, this will not always work. For example, if the dataset has many variables, SAS will try to list all of those variables for at least one observation on each page, and the pages may not be separated at appropriate places. The following method works for any dataset and any version of SAS.
Suppose that you want to export the dataset of crime rates in Southern states to a comma-delimited file, which could subsequently be transferred to a spreadsheet program. One way to do this is shown below.