<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printing titles with BODYTITLE on in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257542#M15417</link>
    <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply! I ran the following code,&amp;nbsp;you can see&amp;nbsp;a small rectangle at the bottom of the first page&amp;nbsp;right under the middle column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data one; do x = 1 to 50; y = x * x; z = x  * x  * x ; output; end; run;

%macro fontSpecs();
	   FONT_FACE = "SAS Monospace"
	   FONT_SIZE = 7pt
	   FONT_WEIGHT = medium
	   FONT_STYLE = roman
	   FOREGROUND = black
	   BACKGROUND = white
%mend;
proc template;
	define style Styles.Custom;
	parent = Styles.Default;
	*class Continued / pretext= _undef_ font=("SAS Monospace", 1pt) frame=void borderspacing=0 padding=0;
	STYLE Continued from Continued / pretext = "" font=("Arial", 1pt) width=1%;
	STYLE SystemTitle  /	%fontSpecs();
	STYLE Header       / %fontSpecs();
	STYLE Data         / %fontSpecs() ;
	STYLE SystemFooter / %fontSpecs();
	STYLE Table        / %fontSpecs()
	   BORDERWIDTH = 1
	   CELLSPACING = 0pt
	   CELLPADDING = 0pt
	   FRAME = ABOVE
	   RULES = GROUPS
	;
	STYLE SysTitleAndFooterContainer /CELLSPACING=0;
	end;
run;

options orientation=landscape 
        topmargin=.50in bottommargin=.50in rightmargin=.50in leftmargin=.50in;
options nodate nonumber;
 
** change continue_tag to 'OFF' if you do not want to see (continued);
ods tagsets.rtf file="C:\sample99.rtf" options(continue_tag='OFF')  style=Styles.Custom;
		title1 j=l "Company Pharmaceuticals";
		title2 j=l "Study: XYZ1234";
		title3 j=l "Site: Glesborg";

proc report data=one nowd missing
            split='|'   contents='';
	column x y z;
	define x /DISPLAY id   center format = 10.0 style=[cellwidth=2cm];
	define y /DISPLAY      center format = 10.0 style=[cellwidth=2cm];
	define z /DISPLAY      center format = 10.0 style=[cellwidth=2cm];
run;
ods tagsets.rtf close;


&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="the little rectangle.png" alt="the little rectangle.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2362i35AE7CB99703B0CE/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Thank you again for help with my problems.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2016 09:41:20 GMT</pubDate>
    <dc:creator>rkk33</dc:creator>
    <dc:date>2016-03-18T09:41:20Z</dc:date>
    <item>
      <title>Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/256858#M15397</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to print&amp;nbsp;multiple titles&amp;nbsp;at the left upper corner of&amp;nbsp;each page&amp;nbsp;(not just on the first page of the output of PROC&amp;nbsp;REPORT, but on all of them)&amp;nbsp;while having&amp;nbsp;the BODYTITLE option on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following code, but it prints the titles&amp;nbsp;in the first rows of the table (please see the attachement). I don't need the titles on the table, I would like to have&amp;nbsp;them on the left upper corner of the page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data one; do x = 1 to 350; y = x * x; z = x  * x  * x ; output; end; run;

options ls = 180  ps=25 orientation=landscape;
options nodate nonumber;
title1;
title2;
ods bodytitle;
ods rtf file="sample99.rtf";
proc report data=one nowd missing
            split='|' formchar(2)='_'
            headline
            headskip contents=''
            spacing=4
			ls=132 ps=43
			;
	column x y z;
	define x /DISPLAY id width = 20  center format = 10.0 style=[cellwidth=2cm];
	define y /DISPLAY width = 20     center format = 10.0 style=[cellwidth=2cm];
	define z /DISPLAY width = 20     center format = 10.0 style=[cellwidth=2cm];
	compute before _page_ / style = [protectspecialchars=off] ;
		line@15 "Company Pharmaceuticals";
		line@15 "Study: XYZ1234";
		line@15 "Site: Glesborg";
		line@15 "";
	endcomp;
run;
ods rtf close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use SAS 9.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 17:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/256858#M15397</guid>
      <dc:creator>rkk33</dc:creator>
      <dc:date>2016-03-15T17:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/256861#M15398</link>
      <description>&lt;P&gt;1: Bodytitle is an option that goes on the ODS RTF statement. You should see an error in your log for ODS Bodytitle; as Statement not valid or out of order with Bodytitle underlined.&lt;/P&gt;
&lt;P&gt;ods rtf file="sample99.rtf" bodytitle;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2: You do not have any title statements for bodytitle to use currently. What your are getting is the&amp;nbsp;text from the compute before _page_ which &lt;STRONG&gt;will&lt;/STRONG&gt; be part of the table.&lt;/P&gt;
&lt;P&gt;Before or as part of the Proc Report you would have something like:&lt;/P&gt;
&lt;P&gt;Title1 "Company Pharmaceuticals";&lt;/P&gt;
&lt;P&gt;Title2 "Study: XYZ1234tle";&lt;/P&gt;
&lt;P&gt;and remove those from the comput before. If you only have one study site then you could also move that to Title3 and remove the compute before entirely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 18:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/256861#M15398</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-15T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/256935#M15403</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As already noted, there is NOT an ODS BODYTITLE statement. BODYTITLE is an option that goes on your ODS RTF statement. BODYTITLE is an option that is only applicable to the RTF destination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Also, some of your options are LISTING only options and are ignored by ODS. I have indicated those options below using the strikethrough indicator:&lt;/P&gt;
&lt;PRE&gt;proc report data=one nowd missing
            split='|'&lt;STRIKE&gt; formchar(2)='_'&lt;/STRIKE&gt;
           &lt;STRIKE&gt; headline&lt;/STRIKE&gt;
           &lt;STRIKE&gt; headskip&lt;/STRIKE&gt; contents=''
            &lt;STRIKE&gt;spacing=4&lt;/STRIKE&gt;
	   &lt;STRIKE&gt; ls=132 ps=43&lt;/STRIKE&gt;
			;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regard to Linesize (LS) and Pagesize (PS) options, either in the OPTIONS statement or in the PROC REPORT statement, those are LISTING only options and have no impact on RTF-based destinations. Finally, this code, using TAGSETS.RTF works for me, implementing the TITLE suggestion:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options orientation=landscape 
        topmargin=.50in bottommargin=.50in rightmargin=.50in leftmargin=.50in;
options nodate nonumber;
 
** change continue_tag to 'OFF' if you do not want to see (continued);
ods tagsets.rtf file="sample99.rtf" options(continue_tag='ON');
		title1 j=l "Company Pharmaceuticals";
		title2 j=l "Study: XYZ1234";
		title3 j=l "Site: Glesborg";

proc report data=one nowd missing
            split='|'   contents='';
	column x y z;
	define x /DISPLAY id   center format = 10.0 style=[cellwidth=2cm];
	define y /DISPLAY      center format = 10.0 style=[cellwidth=2cm];
	define z /DISPLAY      center format = 10.0 style=[cellwidth=2cm];
run;
ods tagsets.rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2318iE1399624A2F752D0/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="using_tagsets_rtf_no_need_bodytitle.png" title="using_tagsets_rtf_no_need_bodytitle.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you can see, with TAGSETS.RTF, you do NOT need the BODYTITLE options, since the titles are automatically put into the body of the document at the top of each page. If you do not like the (continued) at the bottom of each page, you can easily get rid of it by turning the continue_tag suboption to 'OFF'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; With regular RTF, the BODYTITLE option will not work the way you want. It will only put your SAS titles at the top of the FIRST page, not the top of every page. With "regular" RTF, the SAS TITLE statement puts the title into the Header area of the document, that is the only way to have the information repeat at the top of every page. If you do NOT want your titles in the document Header, then TAGSETS.RTF will do what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 00:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/256935#M15403</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-16T00:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257253#M15405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Yes, you are right, I did have an error message. Now I put the BODYTITLE on ODS RTF and no errors show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The reason why I was trying to use compute block was that I wanted my titles show at every page of the output, not just the first one. If I use the "title" statements&amp;nbsp;instead, the titles, unfortunately,&amp;nbsp;will only be on the first page. Same with footers. So this doesn't quite solve my problem yet, but thank you for looking into it !&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 11:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257253#M15405</guid>
      <dc:creator>rkk33</dc:creator>
      <dc:date>2016-03-17T11:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257274#M15406</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your answer has brought me closer to the solution.&amp;nbsp;The first&amp;nbsp;problem I encountered&amp;nbsp;was that the continue_tag="OFF" didn't actually remove the "continue" mark. I found&amp;nbsp;the following&amp;nbsp;workaround, that did not quite fix the problem because a little rectangle still appears at the bottom of the page:&lt;/P&gt;&lt;PRE&gt;STYLE Continued from Continued / pretext = "" font=("Arial", 1pt) width=1%;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, I am now trying to use your approach to get to the desired outputs. To be "(Continued)". I use SAS 9.2.&lt;/P&gt;&lt;P&gt;-- Rkk33&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257274#M15406</guid>
      <dc:creator>rkk33</dc:creator>
      <dc:date>2016-03-17T15:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257338#M15410</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this time I still have a rudimentary rectangle&amp;nbsp;in place of a&amp;nbsp;"Continued" that I am&amp;nbsp;hoping to get rid of, and, as always, very grateful for any suggestions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Rkk&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257338#M15410</guid>
      <dc:creator>rkk33</dc:creator>
      <dc:date>2016-03-17T15:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257507#M15412</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't understand what you mean by "rectangle", when I run my code, but change the continue_tag to 'OFF', this is what I get. I don't know what you mean by a little rectangle. I used the standard RTF style. No style change needed. You might want to work with Tech Support. I am running 9.4 M3. Here is page 1. The only thing I have when I turn paragraph symbols on is a Word page break at the bottom of the page, but that is to be expected with TAGSETS.RTF.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="continue_eq_OFF.png" alt="continue_eq_OFF.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2357i7BE0548A1D378B3A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 04:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257507#M15412</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-18T04:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257542#M15417</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply! I ran the following code,&amp;nbsp;you can see&amp;nbsp;a small rectangle at the bottom of the first page&amp;nbsp;right under the middle column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data one; do x = 1 to 50; y = x * x; z = x  * x  * x ; output; end; run;

%macro fontSpecs();
	   FONT_FACE = "SAS Monospace"
	   FONT_SIZE = 7pt
	   FONT_WEIGHT = medium
	   FONT_STYLE = roman
	   FOREGROUND = black
	   BACKGROUND = white
%mend;
proc template;
	define style Styles.Custom;
	parent = Styles.Default;
	*class Continued / pretext= _undef_ font=("SAS Monospace", 1pt) frame=void borderspacing=0 padding=0;
	STYLE Continued from Continued / pretext = "" font=("Arial", 1pt) width=1%;
	STYLE SystemTitle  /	%fontSpecs();
	STYLE Header       / %fontSpecs();
	STYLE Data         / %fontSpecs() ;
	STYLE SystemFooter / %fontSpecs();
	STYLE Table        / %fontSpecs()
	   BORDERWIDTH = 1
	   CELLSPACING = 0pt
	   CELLPADDING = 0pt
	   FRAME = ABOVE
	   RULES = GROUPS
	;
	STYLE SysTitleAndFooterContainer /CELLSPACING=0;
	end;
run;

options orientation=landscape 
        topmargin=.50in bottommargin=.50in rightmargin=.50in leftmargin=.50in;
options nodate nonumber;
 
** change continue_tag to 'OFF' if you do not want to see (continued);
ods tagsets.rtf file="C:\sample99.rtf" options(continue_tag='OFF')  style=Styles.Custom;
		title1 j=l "Company Pharmaceuticals";
		title2 j=l "Study: XYZ1234";
		title3 j=l "Site: Glesborg";

proc report data=one nowd missing
            split='|'   contents='';
	column x y z;
	define x /DISPLAY id   center format = 10.0 style=[cellwidth=2cm];
	define y /DISPLAY      center format = 10.0 style=[cellwidth=2cm];
	define z /DISPLAY      center format = 10.0 style=[cellwidth=2cm];
run;
ods tagsets.rtf close;


&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="the little rectangle.png" alt="the little rectangle.png" src="https://communities.sas.com/t5/image/serverpage/image-id/2362i35AE7CB99703B0CE/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;Thank you again for help with my problems.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 09:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257542#M15417</guid>
      <dc:creator>rkk33</dc:creator>
      <dc:date>2016-03-18T09:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Printing titles with BODYTITLE on</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257611#M15420</link>
      <description>&lt;P&gt;I think I have a solution now. With the following style definition I don't have no more annoying rectangles at the bottom of each non-ending page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
     define style styles.nocontinued;
     parent=styles.rtf ;
     style Continued from Continued / pretext=" " font=("Arial", 1pt) width=1%;
     style parskip from parskip / font=("Arial", 1pt);
end;
run;
ods tagsets.rtf file='c:\myrtf_tradtional.rtf' style=styles.nocontinued;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks for all your support!&amp;nbsp; But if it OK, I will post again, because it can be discouraging sometimes to look for&amp;nbsp;solutions of&amp;nbsp;apparently simple&amp;nbsp;and common&amp;nbsp;things that have been done for many decades, but for some reason still require esotheric knowledge of SAS&amp;nbsp;gurus like you, guys. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- rkk33&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2016 13:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Printing-titles-with-BODYTITLE-on/m-p/257611#M15420</guid>
      <dc:creator>rkk33</dc:creator>
      <dc:date>2016-03-18T13:23:34Z</dc:date>
    </item>
  </channel>
</rss>

