<?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: [PROC Report] Multiple Table with Title on single page and Figure on next Page in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371455#M88731</link>
    <description>Thanks for the tip sheet! BODYTITLE gets the titles to align with the figures, but it also brings all the headers and footers into the column. Since I have three columns, the headers and footers are represented 3 times. I guess one of the issues is that the title for the proc reports is also part of the header.</description>
    <pubDate>Wed, 28 Jun 2017 20:18:56 GMT</pubDate>
    <dc:creator>daszlosek</dc:creator>
    <dc:date>2017-06-28T20:18:56Z</dc:date>
    <item>
      <title>[PROC Report] Multiple Table with Title on single page and Figure on next Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371425#M88729</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to have three tables on the page age in proc report. Searching the forums I was able to use &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Proc-Report-Multiple-Tables-on-one-page-and-Figure-on-the-next/td-p/371412" target="_self"&gt;this article&lt;/A&gt; in order to have them on the same page (via STARTPAGE= NO &amp;nbsp;columns=3), but their individual titles were not above them. In addition, I have a figure on the following page that is now confined to the left most column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Is there a way to only have the columns=3 only apply to a single page or proc reports?&lt;/P&gt;
&lt;P&gt;-Is there a way to keep the titles above the individual proc reports when they are on the same page?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are my code and a .rtf of my proc report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If any of you have papers/ suggestions that can point in the right direction that would be great!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options nobyline nodate nonumber orientation=landscape topmargin=1in leftmargin=0.5in bottommargin=1in rightmargin=0.5in;
ods listing close;
ods escapechar = '^';
ods rtf file="&amp;amp;outnam" style=journal STARTPAGE= NO  columns=3;                                     

title1 j=l h=1 '^S={postimage="/shares/groups/small.png" color=white} x'
       j=r h=1 "^S={fontstyle=ROMAN}Page ^{pageof}";
title2 j=l h=1 "^S={fontstyle=ROMAN}Study ID:";
title3 j=c h=3 "^S={fontstyle=ROMAN fontsize=9pt}Summary cats";
title4 j=c "  ";

footnote1 
          j=l       "^S={fontstyle=ROMAN fontweight=light ASIS=on}Note" 
          j=l       "^S={fontstyle=ROMAN fontweight=light ASIS=on}Note" 
          j=l       "^S={fontstyle=ROMAN fontweight=light ASIS=on}Note";
footnote2 j=l h=0.3 "  ";
footnote3 j=l h=0.3 "^S={fontweight=light}Note";

proc report data=a5 split='*' nowd;
   column  result gold_standard,value perish tp fn tn fp;
   define result / group  'cats* ';
   define gold_standard / across  'china';
   define value / analysis sum ' ';
   define tp /  noprint;
   define tn /  noprint;
   define fp /  noprint;
   define fn /  noprint;
   define perish / computed noprint format=percent8.2;
   compute before;
      tp1=  _c5_;
	  fn1=  _c6_; 
	  fp1=  _c8_;
   endcomp;
   compute perish;
      perish = (((tp1 + fp1)-(tp1 + fn1))/(tp1 + fn1)) ;
   endcomp;
   compute after;
            line  '% More cats: ' perish percent10.2;
         endcomp;
   title5 'title a';
run;

proc report data=b5 split='*' nowd;
   column  result gold_standard,value perish tp fn tn fp;
   define result / group  'cats* ';
   define gold_standard / across  'china';
   define value / analysis sum ' ';
   define tp /  noprint;
   define tn /  noprint;
   define fp /  noprint;
   define fn /  noprint;
   define perish / computed noprint format=percent8.2;
   compute before;
      tp1=  _c5_;
	  fn1=  _c6_; 
	  fp1=  _c8_;
   endcomp;
   compute perish;
      perish = (((tp1 + fp1)-(tp1 + fn1))/(tp1 + fn1)) ;
   endcomp;
   compute after;
            line  '% More cats: ' perish percent10.2;
         endcomp;
   title5 'title b';
run;

proc report data=c5 split='*' nowd;
   column  result gold_standard,value perish tp fn tn fp;
   define result / group  'cats* ';
   define gold_standard / across  'china';
   define value / analysis sum ' ';
   define tp /  noprint;
   define tn /  noprint;
   define fp /  noprint;
   define fn /  noprint;
   define perish / computed noprint format=percent8.2;
   compute before;
      tp1=  _c5_;
	  fn1=  _c6_; 
	  fp1=  _c8_;
   endcomp;
   compute perish;
      perish = (((tp1 + fp1)-(tp1 + fn1))/(tp1 + fn1)) ;
	     endcomp;
   compute after;
            line  '% More cats: ' perish percent10.2;
         endcomp;
   title5 'title c';
run;


proc report data=whip5 split='*' nowd;
   column  image;
   define image / computed style(column)={width=7.5in} 'Missing Results by Month';
compute image;
     image = 'Missing OD Results by Month';
     imageloc = catt('style={preimage="/shares/chart1.jpeg"}');
    call define(_col_,'style',imageloc);
   endcomp;
   title5 'Missing OD Results';
run;


ods rtf close;
ods listing;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371425#M88729</guid>
      <dc:creator>daszlosek</dc:creator>
      <dc:date>2017-06-28T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: [PROC Report] Multiple Table with Title on single page and Figure on next Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371439#M88730</link>
      <description>&lt;P&gt;Try the BODYTITLE option on the ODS statement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a link to the ODS RTF tip sheet&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsrtf/rtf-tips.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 19:14:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371439#M88730</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-28T19:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: [PROC Report] Multiple Table with Title on single page and Figure on next Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371455#M88731</link>
      <description>Thanks for the tip sheet! BODYTITLE gets the titles to align with the figures, but it also brings all the headers and footers into the column. Since I have three columns, the headers and footers are represented 3 times. I guess one of the issues is that the title for the proc reports is also part of the header.</description>
      <pubDate>Wed, 28 Jun 2017 20:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371455#M88731</guid>
      <dc:creator>daszlosek</dc:creator>
      <dc:date>2017-06-28T20:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: [PROC Report] Multiple Table with Title on single page and Figure on next Page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371482#M88739</link>
      <description>&lt;P&gt;If you do not want titles from previous output to appear with a specific output table then issue a title statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title 'This is a title until reset';&lt;/P&gt;
&lt;P&gt;proc freq data=sashelp.class;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; tables height weight;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Proc print data = sashelp.class;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var name;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title;&lt;/P&gt;
&lt;P&gt;proc means data=sashelp.class;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var height weight;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;The Proc print inherits the title from the one set before Proc Freq;&lt;/P&gt;
&lt;P&gt;Using the Title; to clear the assigned titles means the Proc means does not get the title. Or change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use different levels of the Title ; When you use Title3 ; it clears the title3 and higher number defintions but not title1 and title2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 22:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-Report-Multiple-Table-with-Title-on-single-page-and-Figure/m-p/371482#M88739</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-28T22:35:52Z</dc:date>
    </item>
  </channel>
</rss>

