Published on :
Reporting CREATION_INTERNE

ODS Footer Management

This code is also available in: Deutsch Español Français
The SAS© code initializes the escape character for ODS statements to '^', allowing the use of special escape sequences in ODS text strings. It then defines a right-aligned footer that displays the current page number and the total number of pages, utilizing RTF fields for extended compatibility with output formats such as RTF.
Data Analysis

Type : CREATION_INTERNE


This script does not process data; it configures the ODS environment for report generation.

1 Code Block
Global ODS Statement
Explanation :
The first line defines the escape character for ODS. The second line creates a footer for page numbering using RTF syntax, which will be inserted into documents generated by ODS.
Copied!
1ODS ESCAPECHAR="^";
2footnote J=R "^R/RTF'{PAGE \field {\*\fldinst PAGE\*\MERGEFORMAT}} { OF \field {\*\fldinst NUMPAGES \*\MERGEFORMAT} }'";
3 
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.