Tables and axes > Using axes as columns > Printing numbers in columns
 
Printing numbers in columns
Quick reference
To define the positions in which cell counts will be printed relative to the column headings defined on g statements, type:
p    x   [x     ....   ]
where x is any non-blank character.
More information
Each group of g statements must be followed by a p statement showing where numbers are to be printed in relation to the column texts. The p statement is formatted as follows:
p    x    x     ...
where x is any non-blank character. Absolute figures are then right-justified in the columns marked with a character.
Columns of figures can be separated by vertical lines. These are initiated by a vertical bar in the appropriate columns of the p statement, thus:
l ax04
col 109;Base;Single;Married;Divorced;Widowed
g                     Marital Status
gBase      Single     Married    Divorced     Widowed
p   x   |       x   |       x   |       x   |       x
produces:
                              Marital Status
         Base      Single     Married    Divorced     Widowed
Base      200  |       44  |      122 |        33  |        1
Male       44  |        6  |       27 |        10  |        1
Female    156  |       38  |       95 |        23  |        0
See also
Using axes as columns