Problem Note 56834: The NOCENTER system option is ignored when you route graphics output to the ODS RTF and ODS TAGSETS.RTF destinations
Graphs do not appear left-justified in ODS RTF and ODS TAGSETS.RTF output when the NOCENTER system option is used.
You can work around this by applying a style template to the graphics output. Click the Full Code tab to see sample code that illustrates this. This workaround is also useful in the ODS PDF destination, where graphics output is centered even when the NOCENTER system option is specified.
In a future release of SAS® software, you can left-justify graphics output using the NOCENTER system option in the ODS TAGSETS.RTF destination.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows Server 2012 Datacenter | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8.1 Pro 32-bit | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8 Enterprise 32-bit | 9.3 TS1M2 | 9.4 TS1M4 |
z/OS 64-bit | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft® Windows® for x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Linux | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2008 R2 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2008 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M2 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M2 | |
Microsoft Windows 8.1 Pro x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8.1 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8 Pro 32-bit | 9.3 TS1M2 | 9.4 TS1M4 |
Linux for x64 | 9.3 TS1M2 | 9.4 TS1M4 |
z/OS | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2012 R2 Datacenter | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2012 R2 Std | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows Server 2012 Std | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows XP Professional | 9.3 TS1M2 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Enterprise x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Home Premium 32 bit | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Home Premium x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Professional 32 bit | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Professional x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Ultimate 32 bit | 9.3 TS1M2 | 9.4 TS1M4 |
Windows 7 Ultimate x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Windows Vista | 9.3 TS1M2 | |
Windows Vista for x64 | 9.3 TS1M2 | |
64-bit Enabled AIX | 9.3 TS1M2 | 9.4 TS1M4 |
64-bit Enabled HP-UX | 9.3 TS1M2 | 9.4 TS1M4 |
64-bit Enabled Solaris | 9.3 TS1M2 | 9.4 TS1M4 |
HP-UX IPF | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8.1 Enterprise 32-bit | 9.3 TS1M2 | 9.4 TS1M4 |
Microsoft Windows 8 Pro x64 | 9.3 TS1M2 | 9.4 TS1M4 |
Solaris for x64 | 9.3 TS1M2 | 9.4 TS1M4 |
*
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.
You can use the NOCENTER system option to left-justify tables in the RTF destinations, but graphs remain centered. To work around this, create a style template to left-justify the graphics output.
options orientation=portrait nocenter;
ods path (prepend) work.templat(update);
proc template;
define style rtf_gleft;
parent=styles.rtf;
class Graph / just=left;
end;
run;
ods rtf file="rtfLeft1.rtf" style=rtf_gleft startpage=no;
ods tagsets.rtf file="tagsetsLeft1.rtf" style=rtf_gleft startpage=no;
ods graphics / width=12cm height=8cm ;
title "AFTER using STYLE";
proc sgplot data=sashelp.cars;
vbar cylinders;
run;
goptions hsize=12cm vsize=8cm;
proc gchart data=sashelp.cars;
vbar cylinders;
run;
quit;
ods _all_ close;
You can use the NOCENTER system option to left-justify tables in the RTF destinations, but graphs remain centered. To work around this, create a style template to left-justify the graphs.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2016-06-27 13:58:02 |
Date Created: | 2015-10-19 13:07:44 |