As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips:Sample SAS Data Sets for Developing SAS Programs

From sasCommunity
Jump to: navigation, search

Base SAS comes with sample SAS data sets that you can use to develop and perfect your SAS programs. You will find them in the SASHELP library that is automatically allocated whenever you launch SAS. So, these SAS data sets all have the two-node SAS names of SASHELP.XXX, where XXX=AIR, or CLASS, or COMPANY or… whatever.

SASHELP.CLASS seems to be the most popular of these data sets, as it is often cited in examples on SAS-L. Here are some other SASHELP data sets that are a bit more sophisticated and may give your SAS programs more to chew on:

  • CITIDAY - 1069 obs and 11 variables
  • COMPANY - 48 obs and 8 variables
  • ELECTRIC - 48 obs and 16 variables
  • HEART - 5209 obs and 17 variables
  • ORSALES - 912 obs and 8 variables
  • PRDSAL2 - 23040 obs and 11 variables <--My personal favorite!
  • SHOES - 395 obs and 7 variables

For a comprehensive list of the sample SAS data sets, either peruse the SASHELP SAS data library via SAS Display Manager, or use PROC CONTENTS to obtain a listing of them.

Submitted by Michael A. Raithel, The man who wrote the book on performance. Contact me at my Discussion Page.