The DEFINE statement and its substatement and attribute define table_header_2. The TEXT statement uses text and the macro variables FIRST_YEAR and LAST_YEAR to specify the contents of the header. When ODS binds the data component to the table definition (in the DATA step that follows), it will resolve the values of the macro variables FIRST_YEAR and LAST_YEAR. The table definition itself contains references to the macro variables.

The SPACE= attribute inserts a blank line after the header (in the Listing output only).


The END statement ends the header definition.


  define table_header_2;
      text "from " first_year " to " last_year;
      space=1;
  end;