Create the TableOf footer template. The DEFINE FOOTER statement and its attributes create the footer template TableOf, which is specified by the FOOTER statement later on in the program.
The TEXT statements specify the text of the header by using dynamic variables that represent label variables and names, the NOTITLE option, and the current stratum number. The TEXT statements use expressions with these variables to determine which text is displayed. Only the TEXT statements that have a true expression are displayed in the output. In this example, the only text statement that has a true expression is the fourth TEXT statement, and the text resolves to: " City Government Form by Number of Meetings Scheduled".
define footer TableOf; notes 'NoTitle is 1 if the NOTITLE option was specified.'; dynamic StratNum NoTitle; text "Table " StratNum 3. " of " _ROW_LABEL_ " by " _COL_LABEL_ / NoTitle = 0 & StratNum > 0 & _ROW_LABEL_ ^= '' & _COL_LABEL_ ^= ''; text "Table " StratNum 3. " of " _ROW_LABEL_ " by " _COL_NAME_ / NoTitle = 0 & StratNum > 0 & _ROW_LABEL_ ^= '' ; text "Table " StratNum 3. " of " _ROW_NAME_ " by " _COL_LABEL_ / NoTitle = 0 & StratNum > 0 & _COL_LABEL_ ^= ''; text _ROW_LABEL_ " by " _COL_LABEL_ / NoTitle = 0 & _ROW_LABEL_ ^= '' & _COL_LABEL_ ^= ''; text _ROW_LABEL_ " by " _COL_NAME_ / NoTitle = 0 & _ROW_LABEL_ ^= ''; text _ROW_NAME_ " by " _COL_LABEL_ / NoTitle = 0 & _COL_LABEL_ ^= ''; text "Table " StratNum 3. " of " _ROW_NAME_ " by " _COL_NAME_ / NoTitle = 0 & StratNum > 0; text _ROW_NAME_ " by " _COL_NAME_ / NoTitle = 0; style=header; end;