Create the RowsHeader header template. The DEFINE HEADER statement creates the header RowsHeader, which is specified 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 row variable. If there is no label, the next TEXT statement is used, which specifies the row name. 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. The SPACE= attribute specifies that the current header and the previous header should have one blank line between them. The CINDENT= attribute specifies that wrapped lines start at the same column as the left parenthesis.


   define header RowsHeader;
      text _ROW_LABEL_ / _ROW_LABEL_ ^= '';
      text _ROW_NAME_;
      space=0;
      style=header;
      cindent=';';
      end;