cd) to
/usr/usc/sas/default/samples.
There you will see subdirectories
for the major packages within SAS. Choose the directory you
want, then cd to it,
and you will be able to list (ls) the sample
programs therein. Each file contains a different program. When
you choose the program you want, make a note of the name of it,
then go back to your directory structure, invoke SAS,
include the sample program, and submit it.
(In some samples you will
need to modify them slightly, so read the comments at the top of
the file carefully.)
Let's say, for example, that you wanted to run a sample that
demonstrates cluster analysis. When you go to
/usr/usc/sas/default/samples,
you will see the subdirectory
"stat". (CLUSTER is a PROCedure in SAS/STAT.)
When you cd to the
"stat" subdirectory, you will see several
files that begin with "clust".
Let's say you choose "clustex3.sas". Make a note of
it, then go back to your own directory and invoke SAS. When you
get into the Program Editor, type
include /usr/usc/sas/default/samples/stat/clustex3.sas
at the command line. Read the comments at the top of the file. If no modifications are indicated, then simply submit the program as you would any other. The results will go to your output window, as usual.
The most complete library of SAS sample programs is found at the SAS WWWeb site:
support.sas.com/techsup/sample/sample_library.html