SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Tabular Reports
Describing the Table


Let's look at some examples of the TABLE statement at work.


One-Dimensional Tables

As you know, if you specify only one expression, it must be the column-expression. So the following TABLE statement requests a one-dimensional table containing only one row.

     table type;

Type
I II
N N
3.00 17.00


Below is another one-dimensional table, similar to the last. However, here two variables are specified in the column-expression.
     table type premium;

Type Premium
I II
N N Sum
3.00 17.00 3359.15


Two-Dimensional Tables

If you specify two expressions separated by a comma, the expression farthest right is still the column-expression. The row-expression is on the left. In the table below, Type appears in the row dimension, and Premium appears in the column dimension. Notice the comma separating the dimensions.

     table type,premium;

  Premium
Sum
Type 312.65
I
II 3046.50


Two-dimensional tables always have row and column headings; one-dimensional tables only have column headings.



back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement