In SAS, footnotes are set using the footnote statement and they will appear on all subsequent
output until they are either changed or cleared. Based on the second image provided with the SAS
code, the footnote for the second PROC PRINT report is set immediately before it runs.
The code sets footnote1 as 'Created by HR' and footnote2 as 'Confidential' initially. However, before
the second PROC PRINT step, footnote2 is redefined as 'Draft - Do Not Distribute'. Since footnote1 is
not redefined or cleared, it is no longer in effect for the second report.
Therefore, the only footnote that appears for the second PROC PRINT report is what is defined for
footnote2 at that point in the code, which is 'Draft – Do Not Distribute'. That's why the correct
answer is D.
Reference:
SAS 9.4 documentation for the FOOTNOTE statement: SAS Help Center: FOOTNOTE Statement