PROC TEMPLATE features:
PATH statement
LIST statement
starting-path option
SORT = option
This example lists the items for the Base.Univariate directory in the item store SASHELP.TMPLMST.
Set the SAS system options. The OPTIONS statement controls several aspects of the Listing output. None of these options affects the HTML output.
options nodate pageno=1 pagesize=60 linesize=72;
Specify which locations to search for definitions that were created by PROC TEMPLATE. The PATH statement specifies to search for definitions that were created by PROC TEMPLATE in the SASHELP.TMPLMST item store.
proc template; path sashelp.tmplmst;
List in descending order the definitions that are stored within a specified level of the template store. The LIST statement lists the definitions in one or more template stores. The starting path base.univariate specifies the level within the template store where PROC TEMPLATE is to start listing the definitions. The SORT= option sorts the list of definitions. The definitions are sorted in descending order.
list base.univariate / sort=path descending; run;
The SAS System 1 Listing of: SASHELP.TMPLMST Path Filter is: Base.Univariate Sort by: PATH/DESCENDING Obs Path Type ------------------------------------------- 1 Base.Univariate.Wins Table 2 Base.Univariate.Trim Table 3 Base.Univariate.Robustscale Table 4 Base.Univariate.Quantiles Table 5 Base.Univariate.PValue Link 6 Base.Univariate.Normal Table 7 Base.Univariate.Moments Link 8 Base.Univariate.Modes Table 9 Base.Univariate.Missings Table 10 Base.Univariate.Measures Table 11 Base.Univariate.Location Table 12 Base.Univariate.LocCount Table 13 Base.Univariate.Freqency Table 14 Base.Univariate.FitQuant Table 15 Base.Univariate.FitParms Table 16 Base.Univariate.FitGood Table 17 Base.Univariate.ExtVal Table 18 Base.Univariate.ExtObs Table 19 Base.Univariate.ConfLimits Table 20 Base.Univariate.Bin Table 21 Base.Univariate.BinPercents Table 22 Base.Univariate. Dir
PROC TEMPLATE features:
PATH statement
SOURCE statement
This example displays the source code for the tagset definition Xhtml that SAS provides.
Specify which locations to search for definitions that were created by PROC TEMPLATE. The PATH statement specifies to search for definitions that were created by PROC TEMPLATE in the SASHELP.TMPLMST item store.
proc template; path sashelp.tmplmst;
Write the source code of the specified definition. The SOURCE statement writes the source code for the tagset Xhtml that SAS provides. The source code is written to the SAS log.
source Tagsets.Xhtml; run;
NOTE: Path 'Tagsets.Xhtml' is in: SASHEP.TMPLMST. define tagset Tagsets.Xhtml; notes "XHTML 1.0"; define event doc; start: set $empty_tag_suffix" /"; set $doctype "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHML 1.0 Transition al//EN"">"; set $framedoctype "<!DOCTYPE html PUBLIC ""-//W3C//DTD XHML 1.0 Frameset// EN"">"; put $doctype NL; put "<html>" NL; finish: put "</html>" NL; end; split = "<br/>"; parent = tagsets.html4 end; 116 run; NOTE: PROCEDURE TEMPLATE used (Total process time): real time 0.10 seconds cpu time 0.11 seconds