Working with Matrices |
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 tailor your displayed output:
> mattrib coffee rowname=({jenny linda jim samuel}) > colname=({mon tue wed thu fri}) > label='Weekly Coffee' > format=2.0; > print coffee; 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
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.