Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Working with Matrices

Using the AUTONAME Option

You can use the RESET statement with the AUTONAME option to automatically diplay row and column headings. If your matrix has n rows and m columns, the row headings are ROW1 to ROWn and the column headings are COL1 to COLm. For example, the following statements produce the following results:

   > reset autoname;
   > print coffee;


           COFFEE      COL1      COL2      COL3      COL4      COL5

           ROW1           4         2         2         3         2
           ROW2           3         3         1         2         1
           ROW3           2         1         0         2         1
           ROW4           5         4         4         3         4

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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