Sample Program Libraries

From sasCommunity
Jump to: navigation, search

SAS provides sample program libraries for many of the SAS sub-products (SAS/Access, SAS/Connect, SAS/Graph, etc.) that you license. The sample program libraries contain a dozen or so SAS programs that exploit the particular product they are associated with. You can use them as a jumping-off point for writing your own SAS programs using SAS/Access, SAS/Connect, SAS/Graph, etc. Or, you can simply browse them to get new ideas.

You can find these programs in a sub-directory named "sample" under the directory structure for each product. For example, on Windows, the SAS/Access sample program library can be found here:

!sasroot\products\sasinstall__9220__win__en__sp0__1\sas\access\sample

…while the SAS/Connect sample program library can be found here:

!sasroot\products\sasinstall__9220__win__en__sp0__1\sas\connect\sample

On Linux and UNIX, the sample libraries can all be found in individual sub-directories, beneath:

!sasroot/SASFoundation/9.2/samples

So, on Linux/UNIX, you would have the SAS program for SAS/Access and SAS/Connect in these respective directories:

!sasroot/SASFoundation/9.2/samples/access

!sasroot/SASFoundation/9.2/samples/connect

Browse the SAS sample programs some time to see if you can pick up new ideas. Or, consider pointing them out to one of your colleagues who is learning SAS.

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