Usage Note 34186: How to remove the default title from ODS GRAPHICS output
You can remove the default title from your ODS GRAPHICS output by specifying the following statement after the BEGINGRAPH statement within the PROC TEMPLATE code that is used to produce the graphics output:
ENTRYTITLE " ";
Please see the Full Code tab for an example.
You can find the name of the template definition that was used to create the output by inserting the following statement prior to your ODS GRAPHICS statement:
ODS TRACE ON;
At the end of your code, you will need to insert the following statement:
ODS TRACE OFF;
The ODS TRACE statement writes to the SAS Log a record of each output object that is created. This information includes the name of the template definition that was used to create each graph.
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 TS1M0 | |
*
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 program below demonstrates the use of the ENTRYTITLE statement in PROC TEMPLATE to remove the default title from ODS GRAPHICS output.
proc template;
define statgraph Stat.Mixed.Graphics.BoxPlot2;
dynamic _TITLE _YVAR _XVAR _DATALABEL _FILL;
BeginGraph;
entrytitle " ";
layout overlay / yaxisopts=(gridDisplay=auto_on label="new label " )
xaxisopts=(discreteopts=(tickvaluefitpolicy=THIN));
if (_FILL = 1)
boxplot y=_YVAR x=_XVAR / labelfar=on DISPLAY=(caps fill mean
median outliers) DATALABEL=_DATALABEL;
else
boxplot y=_YVAR x=_XVAR / labelfar=on DISPLAY=(caps mean median
outliers) DATALABEL=_DATALABEL;
endif;
endlayout;
EndGraph;
end;
run;
This note demonstrates how to remove the default title from ODS GRAPHICS output using PROC TEMPLATE.
Date Modified: | 2009-02-10 09:39:57 |
Date Created: | 2008-12-12 10:27:06 |