Sashelp Data Sets


Overview of Sashelp Data Sets

SAS provides more than 200 data sets in the Sashelp library. These data sets are available for you to use for examples and for testing code. For example, the following step uses the Sashelp.Class data set:

proc reg data=sashelp.Class;
   model weight = height;
run; quit;

You do not need to provide a DATA step to use Sashelp data sets.

The following steps list all the data sets that are available in Sashelp:

ods select none;
proc contents data=sashelp._all_;
   ods output members=m;
run;
ods select all;

proc print;
   where memtype = 'DATA';
run;

The results of these steps (more than 200 data set names) are not displayed.

The following steps provide detailed information about the Sashelp data sets:

proc contents data=sashelp._all_;
run;

The results of this step (hundreds of pages of PROC CONTENTS output) are not displayed.

Seventeen Sashelp data sets are used in SAS/STAT documentation, and the following sections describe these data sets:

Sashelp.Baseball

Baseball Data

Sashelp.BEI

Tropical Rain Forest Tree Data

Sashelp.BMT

Bone Marrow Transplant Data

Sashelp.BWeight

Birth Weight Data

Sashelp.Class

Class Data

Sashelp.Comet

Comet Data

Sashelp.ENSO

El Nino–Southern Oscillation Data

Sashelp.Fish

Finland’s Lake Laengelmaevesi Fish Catch Data

Sashelp.Gas

Exhaust Emissions Data

Sashelp.Iris

Fisher (1936) Iris Data

Sashelp.JunkEMail

Junk E-mail Data

Sashelp.LeuTest

Leukemia Data Sets

Sashelp.LeuTrain

Leukemia Data Sets

Sashelp.Margarin

Margarine Data

Sashelp.Mileages

Flying Mileages between 10 US Cities Data

Sashelp.Thick

Coal Seam Thickness Data

Sashelp.Vote1980

1980 US Presidential Election Data