The SAS Output Delivery System and reporting techniques

ODS and SGSCATTER

Reply
Occasional Contributor
Posts: 16

ODS and SGSCATTER

Hi:
I'm running PROC SGSCATTER under 9.2. The files created by ODS PDF have the TITLE and BY lines appearing both at the top of the page and within the output area. Does anyone know of a way of removing the TITLE and BY lines that are outside of the output area?
Thanks.

Code:
Options Orientation = LANDSCAPE BYLINE papersize=letter NODATE NONUMBER;
GOPTIONS RESET=global HBY=1.5 FTEXT="Helvetica" ;
ODS LISTING CLOSE;
ODS PDF FILE="c:\temp\capmon_scatter_plot.pdf" ;
TITLE1 'CAPMoN Precip Scatter Plots' ;
PROC SGSCATTER DATA=subset ;
BY natstnid year;
MATRIX nssso4 no3_ nh4_ h_ ca_ mg_ na_ cl_ k_
/ group=season
LEGEND=(noborder)
;
RUN;
ODS PDF CLOSE;
SAS Super FREQ
Posts: 8,862

Re: ODS and SGSCATTER

Posted in reply to Bill_in_Toronto
HI:
I see the behavior that you are experiencing, but am not sure how to change it. ODS RTF and ODS HTML both have an option (NOGTITLE) which allows you to select whether the title will be outside the graph area or inside (GTITLE) the graph area. However, that option is not available for ODS PDF.

If I run a similar example to ODS RTF with this invocation:
[pre]
ods rtf file='c:\temp\scatterB.rtf' nogtitle;
[/pre]
...then the titles only appear once -- outside the graph area.

This may be a question for Tech Support.
cynthia
SAS Employee
Posts: 50

Re: ODS and SGSCATTER

Posted in reply to Cynthia_sas
There was a problem in the first phase of 9.2 with sg procs and titles when run with PDF but that problem has been fixed for the second phase of 9.2. This next phase is due to ship out soon as far as I know.

A simple test like this will work correctly in 9.2 phase 2.

ods listing close;
ods pdf file="temp.pdf";
Title "this is a title";
proc sgscatter data=sashelp.class;
plot weight*height;
run;
ods pdf close;


Thanks!
Scott
Ask a Question
Discussion stats
  • 2 replies
  • 139 views
  • 0 likes
  • 3 in conversation