Previous Page | Next Page

TEMPLATE Procedure: Managing Template Stores

Example 2: Using a WHERE Expression to Select Items in a Template Store


PROC TEMPLATE features:

PATH statement

LIST statement:

where-expression option

starting-path option

SORT= option



Program Description

This example uses a WHERE expression to select, for listing, fitted distribution table templates in the Base.Univariate directory.


Program Program

 Note about code
options nodate pageno=1 pagesize=60 linesize=72;
 Note about code
proc template; 
path sashelp.tmplmst;
 Note about code
list base.univariate / sort=path descending 
where=(lowcase(path) ? 'fit'); 
run;

Listing of Fitted Distribution Templates In the Base.Univariate Template Store

                                                                       1

             Listing of: SASHELP.TMPLMST
             Path Filter is: Base.Univariate
             Sort by: PATH/DESCENDING

             Obs    Path                            Type
             _____________________________________________
              1     Base.Univariate.FitQuant        Table
              2     Base.Univariate.FitParms        Table
              3     Base.Univariate.FitGood         Table




Previous Page | Next Page | Top of Page