TEMPLATE Procedure: Managing Template Stores |
Featured in: | Listing Templates in a Template Store |
LIST <starting-path></ option(s)>; |
Options |
specifies a level within each template store where PROC TEMPLATE starts listing items. For example, if starting-path is base.univariate, PROC TEMPLATE lists only base.univariate and the items within it and within all the levels that it contains.
sorts the list of items by the specified statistic in the specified sorting order.
is the content of any NOTES statement in the PROC TEMPLATE step that created the item.
Alias: | LABEL |
is the name of the item that the current item links to (see LINK Statement).
is the path to the current item in the template store. (The path does not include the name of the template store).
is the type of the item: COLUMN, FOOTER, HEADER, STYLE, TABLE, or LINK. If the item is simply a level in the item store, its type is DIR.
Default: | PATH |
specifies whether SORT= sorts from low values to high values or from high values to low values.
sorts from low values to high values.
Alias: | A |
sorts from high values to low values.
Alias: | D |
Default: | ASCENDING |
specifies the information to include in the list of items.
includes the specified information. statistic is one or more of the following:
is the content of any NOTES statement in the PROC TEMPLATE step that created the item.
Alias: | LABEL |
is the name of the item that the current item links to (see LINK Statement).
Default: | Whether or not you specify STATS=, the list of items always includes an observation number, the path to the item, and its type. |
specifies the template store to process.
Default: | All template stores in the current template path (see PATH Statement). |
selects, for listing, items that meet a particular condition. For example, the following statement lists items that contain the word "Default" in the path to the current template:
list / where=(path ? 'Default');
is an arithmetic or logical expression that consists of a sequence of operators and operands.
where-expression has this form:
(subsetting-variable <comparison-operator where-expression-n>) |
a special kind of WHERE expression operand used by the SOURCE statement to help you find common values in items. Subsetting variables are one or more of the following:
is the fully qualified path of a template.
is the type of the item. TYPE is one of the following:
specifies that the template is a column in a table.
specifies that the template is a footer in a table.
specifies that the template is a header in a table.
specifies that the template is a link or URL.
specifies that the definition is a style.
specifies that the definition is a table template .
specifies that the definition is a tagset.
is the content of any NOTES statement in the PROC TEMPLATE step that created the item. The contents is displayed in the LABEL field.
is the size of the item in bytes.
Example: |
This SOURCE statement displays the source
code for all items that are larger than 70000 bytes:
source / where=(size > 70000); run; |
is the date the item was created.
is the creation date of the item.
Example: |
This SOURCE statement displays the source
code for all of the items with a creation date of 16JUL2004:
source / where=(_cdate_ = '16JUL2004'd); run; |
is the creation datetime of the item.
Example: |
This SOURCE statement displays the source
code for all items with a creation SAS datetime of May 1, 2003 at 9:30:
source / where=(_cdatetime_ = '01may04:9:30:00'dt); run; |
is the creation time of the item.
Example: |
This SOURCE statement displays the source
code of all items with a creation time of 9:25:19 PM:
source / where=(_ctime_ = '9:25:19pm't); run; |
is the modification date of the item.
Example: |
This SOURCE statement displays the source
code of all items with a modification date of 16JUL2004:
source / where=(_mdate_ = '16JUL2004'd); run; |
is the modification datetime of the item.
Example: |
This SOURCE statement displays the source
code of all items with a modification SAS datetime of May 1, 2003 at 9:30:
source / where=(_mdatetime_ = '01may04:9:30:00'dt); run; |
is the date the item was modified.
is the modification time of the item.
Example: |
This SOURCE statement displays the source
code of all items with a modification time of 9:25:19 PM:
source / where=(_mtime_ = '9:25:19pm't); run; |
compares a variable with a value or with another variable. The following table lists the comparison operators:
Symbol | Mnemonic Equivalent | Definition |
---|---|---|
= | EQ | Equal to |
^= or ~= or ¬= or <> | NE | Not equal to |
> | GT | Greater than |
< | LT | Less than |
>= | GE | Greater than or equal to |
<= | LE | Less than or equal to |
|
IN | Equal to one from a list of values |
See also: | For information on expressions that you can use in the WHERE data set option, see the WHERE data set option in SAS Language Reference: Dictionary and "WHERE Expression Processing" in SAS Language Reference: Concepts. |
Featured in: | Using a WHERE Expression to Select Items in a Template Store |
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.