Tables and axes > Creating tables > and statement
 
and statement
Quick reference
To request a series of tables with a common axis, type a tab statement for the first table and follow it with:
and[n] axis1 [axis2 ... ]
where n is blank or 1 for row axes, 2 for column axes and 3 to 6 for higher dimensions.
The tab statement and is very useful if you have to create a series of tables using the same row, column or higher dimension axis. For example, to set up a series of tables all of which have the same row axis, write:
tab ax01 bk01
tab ax01 bk02
tab ax01 bk03
tab ax01 bk04
but it is much quicker and more efficient to write:
tab ax01 bk01
and bk02 bk03 bk04
This example produces four tables:
ax01 by bk01
ax01 by bk02
ax01 by bk03
ax01 by bk04
Each and statement can contain any number of axes as long as they are separated by spaces and the total length of the statement does not exceed 200 characters.
Any text associated with the table specified on the tab statement also applies to the tables created using the axes on the and line. By default, each table in the series will have a different table number and page number. You can, if you prefer, use the option nand on a tb statement to cause all tables created by ands to have the same table number as the parent table. For more information about the tb statement, see Table numbers.
There are also and statements for defining additional rows or higher dimension axes. They are and2 to and6, where the number following and is the dimension number of the axis. Incidentally, and for rows can also be written and1. As you can see, the dimension number is found by counting the number of axes in the table, starting with the column (right-most) axis.
Any number of ands can follow a tab statement as long as they are all of the same type; that is, all and or all and2; a mixture is not acceptable.
See also
Creating tables