Create the RowsHeader header template. The DEFINE HEADER statement creates the header RowsHeader. RowsHeader is specified as a row header by the preceding ROWS_HEADER= style attribute. The TEXT statements specify the text of the header by using dynamic variables that represent label variables and names. The first TEXT statement uses an expression to determine if a label is assigned to the variable. If there is no label, the next TEXT statement which specifies the row name will be used. In this example there is a row label for the row variable, so in the output, _ROW_LABEL_ resolves to "City Government Form".


The STYLE= attribute specifies style information for the header, and the SPACE attribute specifies that the current header and the previous header should have one blank line between them.


      define header RowsHeader;
         text _ROW_LABEL_ / _ROW_LABEL_ ^= '';
         text _ROW_NAME_;
         style=header {backgroundcolor=#BFCFFF color=#6078bf fontstyle=italic};
         space=0;
         end;