| Creating Tabular Reports |
| Describing the
Table |
| Let's look at some examples of the TABLE statement at work.
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, 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. |
![]() ![]() |
|
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.