The SAS Output Delivery System and reporting techniques

titles display twice in pdf file

Reply
Contributor
Posts: 70

titles display twice in pdf file

My following code displays titles twice (above the graph and inside the graph):

ods pdf file='test.pdf';
title;
title2 'title2';
title4 'title4';
proc sgplot data=.MeanValue;
Xaxis label="Mean Score" values=(0 to 5 by 1);
yaxis label="Items" ;
hbar Item / response=Avg;
run;
quit;
ods pdf close;

I am not sure this is a graph question or an ODS question. Thanks for any help.
Valued Guide
Posts: 634

Re: titles display twice in pdf file

I have been unable to duplicate the problem. Do you see the same behavior with just this code step and a fresh version of SAS?
Contributor
Posts: 70

Re: titles display twice in pdf file

Thanks ArtC. To make sure my other options don't have effect on this codes, I shut down and restarted my SAS (v.9.2).
But after I submit the code, I still got the PDF file that have duplicate titles. I mean on the top of the page, title2, title 4 and title 5 display and, within the graph image, the three titles also show up.
SAS Super FREQ
Posts: 8,864

Re: titles display twice in pdf file

Hi:
I agree with ArtC. I cannot duplicate this issue with the code below. If the problem persists after you restart SAS, then you should open a track with Tech Support.

cynthia
[pre]
options nodate nonumber;
title; footnote;

ods pdf file='c:\temp\test_title.pdf';

title;
title2 'title2';
title4 'title4';
proc sgplot data=sashelp.class;
hbar age / response=weight stat=mean;
run;

ods pdf close;
[/pre]
Contributor
Posts: 70

Re: titles display twice in pdf file

Posted in reply to Cynthia_sas
Cynthia, I ran your code after I restarted my SAS. Unfortunately, I still got the same problem. Smiley Sad

Message was edited by: Fisher
Contributor
Posts: 70

Re: titles display twice in pdf file

Can I send the PDF file created by your code to you by email?
Contributor
Posts: 70

Re: titles display twice in pdf file

Finally, SAS technical support provided the reason and suggested a workaround to this problem. Anyone suffered like me can go to here to avoid wasting more time:

http://support.sas.com/kb/34/600.html

Thanks, SAS tech support team.
SAS Super FREQ
Posts: 8,864

Re: titles display twice in pdf file

Ah, that does explain it. I was testing in SAS 9.2 M2, which is why the problem did not occur in my test. Tech Support is, indeed, wonderful.

BTW, if you use this search string
duplicate titles PDF SGPLOT
in the search facility SUPPORT.SAS.com, that TS Note is the first "hit".

cynthia
SAS Super FREQ
Posts: 8,864

Re: titles display twice in pdf file

Hi:
At this point, since I cannot duplicate your issue, if your code is essentially the same as my test code, I have no idea what might be wrong. This is the point at which you need to start working with Tech Support.

If you open a track with Tech Support, they can look at all your code and at your output PDF and they can help you resolve this issue.

To open a track with Tech Support, fill out the form at this link:
http://support.sas.com/ctx/supportform/createForm

cynthia
Ask a Question
Discussion stats
  • 8 replies
  • 1329 views
  • 0 likes
  • 3 in conversation