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 definition- 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 ;
DELETE definition-path </ STORE= libref . template-store >;
EDIT definition-path-1 <AS definition-path-2 > </ STORE= libref . template-store >;
statements-and-attributes
END ;
LINK definition-path-1 TO definition-path-2 </ option(s) >;
LIST < starting-path ></ option(s) >;
PATH location(s) ;
SOURCE definition-path </ option(s)>;
TEST DATA= SAS-data-set </ STORE= libref . template-store >;
Task | Statement |
---|---|
Create a column definition | 'DEFINE COLUMN Statement' on page374 |
Create a footer definition | 'DEFINE FOOTER Statement' on page395 |
Create a header definition | 'DEFINE HEADER Statement' on page395 |
Create a style definition | 'DEFINE STYLE Statement' on page 288 |
Create a table definition | 'DEFINE TABLE Statement' on page 410 |
Create a tagset definition | 'DEFINE TAGSET Statement'on page 552 |
Delete the specified definition | 'DELETE Statement' on page 273 |
Edit an existing definition | 'EDIT Statement' on page 373 |
Create a link to an existing definition | 'LINK Statement' on page 273 |
List items in one or more template stores | 'LIST Statement' on page 274 |
Specify the locations to write to or read from when creating or using PROC TEMPLATE definitions, and the order in which to search for them | 'PATH Statement' on page 276 |
Write the source code for the specified definition to the SAS log | 'SOURCE Statement' on page 277 |
Test the most recently created definition by binding it to the specified data set | 'TEST Statement' on page 279 |