ORIENTATION= System Option

Specifies the paper orientation to use when printing to a printer.
Valid in: Configuration file, SAS invocation, OPTIONS statement, SAS System Options window
Category: Log and procedure output control: ODS Printing
PROC OPTIONS GROUP= ODSPRINT
Note: This option cannot be restricted by a site administrator. For more information, see Restricted Options.

Syntax

ORIENTATION=PORTRAIT | LANDSCAPE | REVERSEPORTRAIT | REVERSELANDSCAPE

Syntax Description

PORTRAIT
specifies the paper orientation as portrait. This is the default.
LANDSCAPE
specifies the paper orientation as landscape.
REVERSEPORTRAIT
specifies the paper orientation as reverse portrait. Use this value to control the top of the page relative to how the paper is inserted into the input paper tray. REVERSEPORTRAIT can be used when you print preprinted or punched forms.
REVERSELANDSCAPE
specifies the paper orientation as reverse landscape. Use this value to control the top of the page relative to how the paper is inserted into the input paper tray. REVERSELANDSCAPE can be used when you print preprinted or punched forms.

Details

Changing the value of this option might result in changes to the values of the portable LINESIZE= and PAGESIZE= system options.
You can change the orientation between document pages for the following output types:
  • the LISTING destination
  • the RTF destination
  • a Universal Printing printer
Note: Changing the orientation between document pages is supported only for Universal Printing. It is not supported for Windows printing.
Use the OPTIONS statement between the steps that create output to change the page orientation.

Example

This example creates a PDF file with both portrait and landscape orientations.
options orientation=landscape obs=5;
ods pdf file="File3.pdf";
proc print data=sashelp.class;
run;
options orientation=portrait;
proc print data=sashelp.retail; run;
ods pdf close;
Here is the output:
The First Page of the PDF Has a Landscape Orientation
The First Page of the PDF Has a Landscape Orientation
The Second Page of the PDF Has a Portrait Orientation
The Second Page of the PDF Has a Portrait Orientation

See Also

ODS PRINTER Statement in SAS Output Delivery System: User's Guide
Universal Printing in SAS Language Reference: Concepts
System Options: