Legends are fields you can add to your report to display information that is passed to the report at runtime. Typically, legends are used to display string values representing the sorting and restriction options selected by the user running the report. Legend values can also be used as elements in calculated fields. The legend values passed to a report are specified using the legends clause of the run report or run report with name statement used to print the report.
Information about legends is divided into the following sections: