BookmarkSubscribeRSS Feed
Bill_in_Toronto
Obsidian | Level 7
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;
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
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
ScottH_SAS
SAS Employee
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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 895 views
  • 0 likes
  • 3 in conversation