Tables and axes > Creating tables > Combining tables > Adding tables > Dummy elements with offset tables
 
Dummy elements with offset tables
Because of the way Quantum creates tables, you must make sure that the axes on the tab statement have as many rows or columns as there will be in the final table (see output of ax01 by bk01 above). To do this it might be necessary to pad these axes with dummy n01 statements. If the dummy elements are omitted, any extra columns or rows in the other axes are ignored when the tables are added.
All row and column headings are taken from the axes on the tab statement, so the dummy elements should also define any texts that are to be used for the additional rows and columns. If no text is given, the rows and columns are printed without headings.
In this example, the original table has three rows and columns compared to five of each in the final table, therefore you must pad out the axes ax01 and ax02 so that they too have five each. For example:
l ax01
col 27;r1;r2;r3
n01r4;dummy
n01r5;dummy
If the axis is later used in another table, the dummy rows are ignored.
If you fail to allow sufficient rows and columns in added tables with offsets, you might find that counts for some cells are larger than you would expect because counts for the ‘extra’ cells have been added into the next valid cell in the table.
Any of the options listed in section as valid on sid and und statements can also be used on an add statement.
See also
Adding tables