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
Sashelp.BEI
Sashelp.BMT
Sashelp.BWeight
Sashelp.Class
Sashelp.Comet
Sashelp.ENSO
Sashelp.Fish
Sashelp.Gas
Sashelp.Iris
Sashelp.JunkEMail
Sashelp.LeuTest
Sashelp.LeuTrain
Sashelp.Margarin
Sashelp.Mileages
Sashelp.Thick
Sashelp.Vote1980