Usage Note 22209: How can I access the sample library programs?
You can access the sample library programs from within SAS software as follows:
- PC Systems Running Windows
-
- In SAS 9, select Help->SAS Help and Documentation, and on the Contents tab in the left pane, select Learning to Use SAS->SAS Sample Programs.
In SAS 7 and SAS 8, select Help->SAS System Help. Select Sample SAS Programs and Applications in the right pane or use the Contents tab in the left pane. Prior to SAS 7, select Help->Sample Programs.
You can also access the sample programs directly via the include command using this path:
!sasroot/<prod>/sample/<filename>.sas
or
!sasroot\<prod>\sample\<filename>.sas
where !sasroot is understood by SAS to be the location of your SAS directory (usually C:\SAS). Replace
<prod> with the SAS product name (for example, stat, iml, qc,
and so on). For samples in Base SAS software, replace <prod> with core. For example, the following statement that is submitted from the SAS command line copies the GEOMEAN.SAS file into the Program Editor window:
include '!sasroot/core/sample/geomean.sas'
- Systems Running UNIX
-
- In SAS 7 or later, select Help->SAS System Help. From the Contents tab, navigate to the Sample SAS Programs and Applications page and then to the SAS product that you want. Prior to SAS 7, select Help->Sample Programs.
You can also access the sample programs directly via File->Open or the
include command using this path:
!sasroot/samples/<prod>/<filename>.sas
where !sasroot is understood by SAS to be the location of your SAS directory (usually C:\SAS). Replace <prod> with the SAS product name (for example, stat, iml, qc, and so on). For samples in Base SAS software, replace <prod> with core. For example, the following statement that is submitted from the SAS command line
copies the GEOMEAN.SAS file into the Program Editor window:
include '!sasroot/core/sample/geomean.sas'
- Mainframe Systems (MVS and VM/CMS)
-
- Contact your SAS site representative to find out the location of
the SAS sample library. For example, if the sample library is
located in SAS.SAS82.SAMPLE, the following statement that is submitted from
the Program Editor command line copies the GEOMEAN file into the Program Editor window:
include 'sas.sas82.sample(geomean)'
- VAX Systems Running VMS
-
- In SAS 7 or later, select Help->SAS System Help. From the Contents tab, navigate to the Sample SAS Programs and Applications page and then to the SAS product that you want. Prior to SAS 7, select Help->Sample Programs. You can also access the sample programs directly via File->Open or the
include command using this path:
SAS$SAMPLES:[<prod>]<filename>.sas
replacing <prod> with the SAS product
name (for example, stat, iml, qc, and so on). For samples in Base SAS software, replace <prod> with core. For example,
the following statement that is submitted from the SAS command line
copies the GEOMEAN.SAS file into the Program Editor window:
include 'sas$samples:[core]geomean.sas'
- Macintosh Systems
-
- You can access the sample programs via File->Open or the
include command using this path:
!saspath:sample:<prod>:<filename>.sas
where !saspath is understood by SAS to be the location of your SAS folder.
Replace <prod> with the product name (for example, stat, iml, qc, and so on). For samples in Base SAS software, replace <prod> with core. For example, the following statement that is submitted from the SAS command line copies the GEOMEAN.SAS file into the Program Editor window:
include '!saspath:sample:core:geomean.sas'
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Date Modified: | 2005-10-28 14:25:52 |
| Date Created: | 2002-12-16 10:56:48 |