Creating Spanning Column Headers in a Custom Table Template

You've already seen how custom headers can be defined for each column in a table template definition. In a similar fashion, you can define a header for the whole table or for multiple adjacent columns within a table by placing a DEFINE HEADER section inside the overall table template definition and outside of the column definitions over which the header should span.

The template HR_SPAN below defines two spanning headers: SPANHEAD and CALCHEAD. The SPANHEAD text spans the columns in the COLUMN statement starting from ANNUALSALARY and ending with NEWSAL. The CALCHEAD text spans the two columns BONUSAMT and NEWSAL. If you do not specify START= or END= attributes in a header definition ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.