|
Chapter Contents |
Previous |
Next |
| The COMPUTAB Procedure |
To enhance the appearance of the final report, you can use
The following example enhances the report in the previous example. The enhanced report is shown in Figure 9.7.
The TITLE statement assigns the report title. The column headings in Figure 9.7 (Division A, Division B, and Division C) are assigned in the first COLUMNS statement by "Division" _name_ specification. The second COLUMNS statement assigns the column heading ("All" "Divisions"), sets the spacing (+4), and formats the values in the TOTAL column.
Similarly, the first ROWS statement uses previously assigned variable labels for row labels by specifying the _LABEL_ option. The DUL option in the second ROWS statement double underlines the INSURE row. The third ROWS statement assigns the row label TOTAL to the SUM row.
title 'Year to Date Expenses';
proc computab cwidth=8 cdec=0;
columns a b c / 'Division' _name_;
columns total / 'All' 'Divisions' +4 f=dollar10.0;
rows travel advrtise salary insure / _label_;
rows insure / dul;
rows sum / 'Total';
a = compdiv = 'A';
b = compdiv = 'B';
c = compdiv = 'C';
colblk: total = a + b + c;
rowblk: sum = travel + advrtise + salary + insure;
run;
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.