The MATTRIB Statement

The MATTRIB statement associates printing characteristics with matrices. You can use the MATTRIB statement to display coffee with row and column headings. In addition, you can format the displayed numeric output and assign a label to the matrix name. The following example shows how to customize your displayed output:

mattrib coffee rowname=names
        colname=days
        label='Weekly Coffee'
        format=2.0;
print coffee;

Figure 5.33 Result of the MATTRIB Statement
Weekly Coffee
  MON TUE WED THU FRI
JENNY 4 2 2 3 2
LINDA 3 3 1 2 1
JIM 2 1 0 2 1
SAMUEL 5 4 4 3 4