Create footer templates. Each of these DEFINE FOOTER statements and its attributes creates a footer template. For the footers to show up in the output, they must be specified by the FOOTER statement.
The DYNAMIC statements declare the dynamic variables FMissing and SampleSize, so that they can be used in the TEXT statements.
The TEXT statements conditionally select text to use as footers. In the first TEXT statement, the expression is true, because FMissing is not 0. Therefore the first TEXT statement is displayed in the output. In the second TEXT statement, the expression resolves to false, so the NoObs footer does not appear in the output.
The STYLE attribute specifies style information for the footers, and the SPACE attribute specifies that the current footer and the previous footer should have one blank line between them.
define footer Missing; dynamic FMissing; text "Frequency Missing = " FMissing -12.99 / FMissing ^= 0; style=header {backgroundcolor=#BFCFFF color=#6078bf fontstyle=italic}; space=1; end; define footer NoObs; dynamic SampleSize; text "Effective Sample Size = 0" / SampleSize = 0; space=1; style=header; end;