Concepts: Template Stores and the TEMPLATE Procedure


The Contents of Definitions (Templates) that SAS Supplies

SAS provides definitions (templates) for these items:

  • tables

  • styles

  • tagsets

To view the contents of a definition (template), you can use the SAS windowing environment, the SAS window command odstemplates , or the TEMPLATE procedure.

  • SAS Windowing Environment

    1. From the SAS Explorer, select

      View Results

    2. In the Results window, select the Results folder. Right click to open the Templates window.

    3. To view the definitions (templates) that SAS supplies, click on the plus sign that is next to the SASHELP.TMPLMST item store.

    4. Click on the plus sign that is next to an icon to view the contents of that template store or directory in a template store. If there is no plus sign next to the icon, double click the icon to view the contents of that directory.

      click to expand
      Display 8.1: Definitions (Templates) that SAS Supplies

  • SAS Windowing Command

    1. To view the Templates window, submit the following command in the command bar:

       odstemplates 

      The following display shows the Templates window that contains the item stores Sasuser.Templat and Sashelp.Tmplmst .

    2. When you double-click an item store, such as Sashelp.Tmplmst , that item store expands to list the directories where ODS templates are stored. The templates that SAS provides are in the item store Sashelp.Tmplmst.

      click to expand
      Display 8.2: Odstemplates Command

  • TEMPLATE Procedure

    The SOURCE statement writes the source code for the specified definition to the SAS log. For example, if you want to view the source for all the objects in Base SAS, submit the following code.

     proc template;  source base;  run; 

    Note: For more information, see 'SOURCE Statement' on page 277




SAS 9.1 Output Delivery System. Users Guide
SAS 9.1 Output Delivery System Users Guide
ISBN: 1590472187
EAN: 2147483647
Year: 2004
Pages: 99
Authors: SAS Institute

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net