sas >> How to remove proc title with ODS PDF

by mc » Tue, 11 Nov 2008 20:46:45 GMT

Hi,

I got this challenge: I'm sending proc Gchart output to (device=gif) to
ods pdf. It works, but the gchart procedure writes the title ones for
every chart. - Since i'm using multiple output one one page - that makes
way to many titles.

Help please ;O)

/Mads

sas >> How to remove proc title with ODS PDF

by gerhard.hellriegel » Tue, 11 Nov 2008 21:17:12 GMT


depends on how you produce the charts. Are they from different proc
gcharts or are they from BY-processing?
With different proc gcharts you could simply add a empty TITLE statement
after the first...

title "the main title";
proc gchart ...
vbar ...
quit;
title;
proc gchart...

Gerhard

sas >> How to remove proc title with ODS PDF

by Nathaniel.Wooding » Tue, 11 Nov 2008 21:51:45 GMT

Try using the ods statement

ODS NOPROCTITLE ;



Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977



Mads Christensen
< XXXX@XXXXX.COM >
Sent by: "SAS(r) To
Discussion" XXXX@XXXXX.COM
< XXXX@XXXXX.COM cc
GA.EDU>
Subject
How to remove proc title with ODS
11/11/2008 07:46 PDF
AM


Please respond to
Mads Christensen
< XXXX@XXXXX.COM >






Hi,

I got this challenge: I'm sending proc Gchart output to (device=gif) to
ods pdf. It works, but the gchart procedure writes the title ones for
every chart. - Since i'm using multiple output one one page - that makes
way to many titles.

Help please ;O)

/Mads


CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.

sas >> How to remove proc title with ODS PDF

by mc » Wed, 12 Nov 2008 21:42:48 GMT

Im actually using multiple proc gcharts - some of them with by variable.
You're right that about the title; will reset title, but i would like to
have title on the page header.

ODS NOPROCTITLE has no effect on this problem. ("ODS PROCTITLE
writes, in the output, the name of the procedure that produces the
results.")

Similar Threads

1. removing table titles from ods output

2. More on inserting a url in ods pdf title

3. V9 ODS PDF How to underline title?

4. link to url in a title - ODS PDF

I want to include a link to a url in a title produced by ODS PDF.  I can
do this with no problem using ODS HTML, but not ODS PDF.  Anyone have
experience or insight into this?=20
<br/>The materials in this message are private and may contain Protected =
Healthcare Information. If you are not the intended recipient, be advised=
 that any unauthorized use, disclosure, copying or the taking of any acti=
on in reliance on the contents of this information is strictly prohibited=
=2E If you have received this email in error, please immediately notify t=
he sender via telephone or return mail.

5. ODS PDF Title Error

6. ODS PDF - Titles

The title "2008" is not showing in my pdf file (nor any other title
that I have tried).
Any suggestions?
Thanks.

options nodate nonumber orientation=landscape ;
goptions reset=all rotate=landscape;
ods pdf file="C:/test.pdf";
ods escapechar="^";
title1 "^S={just=C color=blue}2008";

goptions reset=all device=ACTIVEX;
axis1 offset=(0,0) value=(f=swissb) minor=none reflabel=(j=c);
axis2 offset=(1,1) value=(f=swissb h=1);
symbol i=none v=dot;
symbol2 i=none v=dot c='CXD9576E' h=0.1;
symbol1 i=none v=dot h=0.1 c='CXE5C76B' pointlabel=(h=1.5 f=swissb '#rate');
legend1 label=('Legend') value=('one' 'two') frame;
proc gplot data=occ anno=annobub gout=tdbuplots;
        plot rate * LVL9 =series /
;
run;
ods pdf close;

7. Horizontal Ruler between two titles (ODS PDF)

8. ODS PDF Image in Title

Hi Karl,
probably your problem is already solved a long time ago, but I just faced
the same problem. I want to answer your question because I did not find any
solution by typing the SAS error message

"ERROR: Unable to load image"

in Google. What I found was your question only!

The reason for this ERROR is that you used the '\' (Backslash) as the ods
escapechar. This will prevent SAS to locate the image file because you use
the '\' as a directory separator in your 'ods printer pdf file=' command
(of course on a Windows box). I did a test and changed the directory
separator to '/' in the image path but this doesn't help. The only chance
is to use a different escapechar in your code. The following code would run
as expected:

-------- Start of sample code ---------
ods escapechar='^';
ods listing close;
ods printer pdf file="c:\my documents\my sas files\v8\foo.pdf";
title j=l '^S={preimage="c:\my documents\my sas files\v8\my_gif.gif"}'
      j=c 'the title^{super *} text'
      j=r '^S={postimage="c:\my documents\my sas files\v8\my_gif.gif"}';
footnote j=l f=helvetica h=1.5 '^{super *}Nifty, ^S={foreground=red}eh?';
proc print data=sashelp.class(obs=3)
           style={rules=none background=red};
run;
ods printer close;
ods listing;
-------- End of sample code ---------

Kind Regards
Thomas