Data Set [11-14]

Saving a SAS Data Set

If you want to save a SAS data set, you will have to copy the data set into a library that is connected to a folder on your SAS server.

Example

Libname Proj1 '/home/kisumsam';

Data Test;
    a = 1;
Run;

Data Proj1.Test;
    Set Test;
Run;

Picture

The data set will then be saved on the SAS server:

Picture

To download the file to your PC, you can simply right click on the data set, and click Download File:

Picture

Select the location. Your file will then be downloaded to your PC.


Exercise

Locate the CP951 data set in the SASHELP library. 

Save the CP951 data set into the home directory of the SAS server. 

Need some help?

Get Hint

Get Solution