Chapter 6
Arranging Output with ODS
LAYOUT
ODS Layout Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729
Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 730
Absolute Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 730
Gridded Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 731
Dictionary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 731
ODS LAYOUT ABSOLUTE Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 731
ODS REGION Statement, Absolute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742
ODS LAYOUT GRIDDED Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 746
ODS REGION Statement, Gridded . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757
ODS LAYOUT END Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 761
ODS Layout Overview
The act of arranging tabular and graphic information about a page is called layout. In
SAS, pages are arranged in layout containers and region containers. Titles and footnotes
can be placed in layout containers or region containers. SAS supports two types of
layout, absolute and gridded.
Absolute layout enables you to specify an exact page location using x and y coordinates.
Absolute layout is limited to one page and is supported only by the PRINTER
destinations. Use the ODS LAYOUT ABSOLUTE statement to produce absolute layout.
Gridded layout is a mechanism for arranging output dynamically. Gridded layout
enables you to arrange output in a two-dimensional grid structure. For example, gridded
layout enforces automatic alignment of grid cells, allows layout to continue onto the next
page, dynamically computes the size of a grid cell, and makes it easier to maintain the
integrity of the report. Use the ODS LAYOUT GRIDDED statement to produce gridded
layout. Gridded layout is supported for HTML, POWERPOINT, and PRINTER
destinations (PDF, PS, and PCL).
The following terms are used to describe ODS layout:
footnotes
are text that appears at the bottom of a container. Footnote processing is always done
before any output is produced on the physical page. This is often referred to as page
initialization. Footnotes can also be specified inside regions, but only the footnotes
that have changed are displayed.
729

Get SAS 9.4 Output Delivery System, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.