The SAS Output Delivery System and reporting techniques

ODS No title on first page

Reply
Contributor
Posts: 74

ODS No title on first page

Hi all,

 

Probably a simple question for experienced ODS people.  I have a template that is a modification of styles.rtf.  See below (I took out a bunch of font stuff). I'm getting titles starting on the second page.  How do I get them to start on the first page?  

 

I'm using 

ods tagsets.rtf file="xx.rtf" options(continue_tag='ON') style=bodydoc10;
title1 j=l "&tt1";
title2 j=l "&tt2";
;

 

Here's the code for the style:

 

proc template;
edit styles.rtf as styles.bodydoc10;

style pageno from pageno /
font=fonts("StrongFont")
TopMargin=0.5in
RightMargin=0.75in
pretext="Page "
posttext=" of ^{lastpage} ";

replace Body from Document /
bottommargin = _undef_
topmargin = _undef_
rightmargin = _undef_
leftmargin = _undef_;

style table from container / cellpadding=2 cellspacing=2 borderwidth=2
rules = cols
frame = box
background = _undef_;

style header /
posttext="^R/RTF'\brdrb\brdrhair\BRDRCF1'"
background=white font_face="Courrier New";

style rowheader from header ;

style color_list
"Colors used in the default style" /
'link' = black
'bgH' = white
'fg' = black
'bg' = white;

style table from output/
background = _undef_
frame=hsides
rules=groups
cellpadding = 2pt
cellspacing = 0pt
borderwidth = 1pt;

style byline from bylinecontainer / font_size=7.5 ; /* Controls by var fontsize for by lines(wilcoxon).*/

end;
run;

 

Thanks!!

Contributor
Posts: 74

Re: ODS No title on first page

I just partially solved the problem by taking out the obtitle statement in proc document.  I now have the title on every page.  However, I lose the "(Continued)" at the bottom of the page, which I'd like to keep.  Suggestions?

SAS Super FREQ
Posts: 8,868

Re: ODS No title on first page

HI:

Since you are using the TAGSETS.RTF destination, it might be that something in your template has broken the continued at the end of the page, but if you are  also using PROC DOCUMENT for the replay to TAGSETS.RTF, this might be something you want to work on with Tech Support. Someone would have to look at all your code, including the PROC DOCUMENT code to really see where things were breaking down.

cynthia

Contributor
Posts: 74

Re: ODS No title on first page

Posted in reply to Cynthia_sas

Thanks for your reply.  I'd never even heard of proc document until I was put on this project (automating the titles) so that part is a mystery to me.  I will follow up with them next week.  Have a good weekend. 

SAS Super FREQ
Posts: 8,868

Re: ODS No title on first page

Contributor
Posts: 74

Re: ODS No title on first page

Posted in reply to Cynthia_sas

Thanks.

Ask a Question
Discussion stats
  • 5 replies
  • 307 views
  • 0 likes
  • 2 in conversation