Previous Page | Next Page

TEMPLATE Procedure: Creating Crosstabulation Table Templates

Crosstabulation Table Syntax: TEMPLATE Procedure


Table of Contents: TEMPLATE Procedure: Creating Crosstabulation Table Templates

PROC TEMPLATE
DEFINE CROSSTABS table-path </ STORE=libref.template-store>;
<table-attribute-1; <...table-attribute-n>;>
CELLVALUE cellvalues;
DEFINE CELLVALUE cellvalue;
statements-and-attributes;
END;
DEFINE HEADER header-name;
statements-and-attributes;
END;
DEFINE FOOTER footer-name;
statements-and-attributes;
END;
DYNAMIC variable-1 <'text-1'> <...variable-n <'text-n'>>;
FOOTER footer-name(s);
HEADER header-name(s);
NOTES text;
END;

PROC TEMPLATE Statements That Add Different Features to Crosstabulation SAS Output
Task Statement
Create a crosstabulation table template DEFINE CROSSTABS
Define a value that appears in the crosstabulation cells DEFINE CELLVALUE
Specify the order in which the cellvalues are stacked in the cells CELLVALUE
Create a template for a footer DEFINE FOOTER
Create a template for a header DEFINE HEADER
End a crosstabulation table template END

Previous Page | Next Page | Top of Page