Create the ColsHeader header template. The DEFINE HEADER statement creates the header ColsHeader, which is specified by the preceding COLS_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 is used, which specifies the row name. In this example there is a column label, so in the output, _COL_LABEL_ resolves to "Number of Meetings Scheduled".


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 ColsHeader;
      text _COL_LABEL_ / _COL_LABEL_ ^= '';
      text _COL_NAME_;
      space=1;
      style=header;
      cindent=';';
      end;