Chapter Contents

Previous

Next
The TABULATE Procedure

Procedure Syntax


Requirements: At least one TABLE statement is required.
Requirements: Depending on the variables that appear in the TABLE statement, a CLASS statement, a VAR statement, or both are required.
Tip: Supports the Output Delivery System (see Chapter 2, "Fundamental Concepts for Using Base SAS Procedures")
Reminder: You can use the ATTRIB, FORMAT, LABEL, and WHERE statements. See Statements with the Same Function in Multiple Procedures for details. You can also use any global statements as well. See Global Statements for a list.

PROC TABULATE <option(s)>;
BY <DESCENDING> variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
CLASS variable(s) </ options>;
CLASSLEV variable(s) / style =<style-element-name | <PARENT>> <[style-attribute-specification(s)]>;
FREQ variable;
KEYLABEL keyword-1='description-1'
<...keyword-n='description-n'>;
KEYWORD keyword(s) / style =<style-element-name | <PARENT>> <[style-attribute-specification(s)]>;
TABLE <<page-expression,> row-expression,> column-expression </ table-option(s)>;
VAR analysis-variable(s)</ options>;
WEIGHT variable;

To do this Use this statement
Create a separate table for each BY group BY
Identify variables in the input data set as class variables CLASS
Specify a style for class variable level value headings CLASSLEV
Identify a variable in the input data set whose values represent the frequency of each observation FREQ
Specify a label for a keyword KEYLABEL
Specify a style for keyword headings KEYWORD
Describe the table to create TABLE
Identify variables in the input data set as analysis variables VAR
Identify a variable in the input data set whose values weight each observation in the statistical calculations WEIGHT


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.