You can create a report with conditional footnotes. These are footnotes that are different by pages according to a page-by variable. In the attached example, the report is paged-by the variable SEX.
  • For 'Female' there are 3 footnote lines
  • For 'Male' there are only two footnote lines
You add the conditional footnote lines to the input data set (See second data step)
as variables. In our example they are: FT1, FT2 and FT3.

In the %DZSTABLE macro call the titles parameter contains the paging variable
!SEX and the footnote parameter contains the !FT1, !FT2 and !FT3 variables.

The resulting report will print the appropriate footnote lines by pages. See attachment TestFootnote.jpg
Attached Files