Tables and axes > Introduction to axes > Subheadings and extra text > Subheadings in the axis
 
Subheadings in the axis
Quick reference
To define a subheading element, type:
n23heading_text[;hdlev=header_level_number] [;toptext=col_header] [;options]
More information
hdlev= allows you to define a hierarchy among subheadings if the axis contains subheadings at different levels. If heading_text is unsuitable for use when the axis forms the columns of a table, define a new heading with toptext=.
Sometimes you might want to give the axis a heading. Here the axis headings are ‘Marital Status’ and ‘Sex’. These were written using n23 statements. As you can see, when the axis is used as a row axis, the heading is printed as a row of the table, at the point at which it appears in the axis definition. In the table it follows the base element because the n23 statement is after the n10 base-creating element:
l mstat
n10Base
n03
n23Marital Status
n01Single;c=c109'1'
n01Married;c=c109'2'
n01Divorced;c=c109'3'
n01Widowed;c=c109'4'
When the axis is used to create columns, the heading is printed above the individual column headings and is separated from them by a blank line. If the axis is used at a higher level (for example, as a third dimensional axis) the axis heading becomes the title of each multidimensional table. For more information on multidimensional tables, see Creating a table.
To underline the subheadings, put unl1, unl2 or unl3 on the n23:
For row subheadings, unl1 underlines the complete text, unl2 underlines everything except blank strings, and unl3 underlines non-blanks only. The underlining is done by overprinting the heading text with underscore characters and looks like true underlining.
For column subheadings, there is currently no difference between the variations of unl: they all underline the whole text. Quantum replaces the blank line that it would normally print after the subheading line with a line of hyphens extending across all the columns to which the subheading refers.
When an axis is used as a higher dimension and the subheading becomes a table title, the request for underlining is ignored.
Other options valid with n23 are:
[no]sort
subsort
[no]row
[no]col
[no]high
For information on these options, see Options on n, col, val, fld and bit statements.
See
Nested subheadings for column axes
Laying out subheadings
See also
Subheadings and extra text