SAS provides over 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 of the data sets that are available in Sashelp:
ods listing close; proc contents data=sashelp._all_; ods output members=m; run; ods listing; proc print; where memtype = 'DATA'; run;
The results of these steps (over 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 information) are not displayed.
Eight data sets are frequently used in SAS/STAT documentation, and information about these data sets is displayed in the next sections:
Sashelp.BMTBone marrow transplant data
Sashelp.ClassClass data
Sashelp.ENSOEl Niño southern oscillation data
Sashelp.FishFinland’s Lake Laengelmavesi fish catch data
Sashelp.GasExhaust emissions data
Sashelp.IrisFisher (1936) iris data
Sashelp.ThickCoal seam thickness data
Sashelp.MileagesFlying mileages between five U.S. cities data