Previous Page | Next Page

TEMPLATE Procedure: Overview

Syntax: TEMPLATE Procedure


PROC TEMPLATE;
DEFINE COLUMN column-path </ STORE=libref.template-store>;
<column-attribute-1; <...column-attribute-n;>>
statements
END;
DEFINE FOOTER footer-path </ STORE=libref.template-store>;
<footer-attribute-1; <...footer-attribute-n;>>
statements
END;
DEFINE HEADER template-name </ STORE=libref.template-store>;
<header-attribute-1; <...header-attribute-n;>>
statements
END;
DEFINE STYLE style-path </ STORE=libref.template-store>;
<PARENT=style-path;>
statements
END;
DEFINE TABLE table-path </ STORE=libref.template-store>;
<table-attribute-1; <...table-attribute-n;>>
statements
END;
DEFINE TAGSET tagset-path </ STORE=libref.template-store>;
DEFINE EVENT event-name;
<event-attribute-1; <...event-attribute-n;>>
statements
END;
DEFINE CROSSTABS table-path </ STORE=libref.template-store>;
statements
END;
DEFINE STATGRAPH graph-path </ STORE=libref.template-store>;
statements
END;
DELETE template-path </ STORE=libref.template-store >;
EDIT template-path-1 <AS template-path-2> </ STORE=libref.template-store > ;
statements-and-attributes
END;
LINK template-path-1 TOtemplate-path-2 </ option(s)>;
LIST <starting-path></ option(s)>;
PATH location(s);
SOURCE template-path </ option(s)>;
TEST DATA=data-set </ STORE=libref.template-store>;

Task Statement
Create a column template DEFINE COLUMN
Create a crosstabulation template DEFINE CROSSTABS
Create a footer template DEFINE FOOTER
Create a header template DEFINE HEADER
Create a graph template DEFINE STATGRAPH
Create a style DEFINE STYLE
Create a table template DEFINE TABLE
Create a tagset DEFINE TAGSET
Delete the specified template DELETE
Edit an existing template EDIT
Create a link to an existing template LINK
List items in one or more template stores LIST
Specify the locations to write to or read from when creating or using PROC TEMPLATE templates, and the order in which to search for them PATH
Write the source code for the specified template to the SAS log SOURCE
Test the most recently created template by binding it to the specified data set TEST

Previous Page | Next Page | Top of Page