Usage Note 24223: How do I control margins in ODS PRINTER?
You can set the margins by issuing an OPTIONS statement BEFORE the ODS statement, like the following:
options topmargin=1 leftmargin=0.75 rightmargin=0.75;
The following alternative method uses PROC TEMPLATE:
proc template;
define style styles.mystyle;
parent=styles.printer;
replace body from document /
leftmargin = 0.75in
rightmargin= 0.75in
topmargin= 1.0in
bottommargin=_undef_
pagebreakhtml=html("pagebreakline");
end;
run;
ods pdf file="my-file.pdf" style=styles.mystyle ;
Note that in SAS 9.2, if both PROC TEMPLATE and an OPTIONS statement are used to change the margins, the larger value will take precedence.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The sample code shows how to control margins in PDF, PCL, and PS (Postscript) files.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) System Administration ==> Printing
|
| Date Modified: | 2008-10-03 22:13:45 |
| Date Created: | 2005-02-09 15:38:04 |