<?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: ODS HTML and Paging Reports in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28644#M4430</link>
    <description>Hi:&lt;BR /&gt;
  In the normal mode of operation, every procedure starts a new page in a "paged" destination like RTF or PDF. HTML, of course, isn't a "paged" destination. Generally, the only indication in an HTML file of where a page break -would- occur is in the horizontal rule that will separate tables.&lt;BR /&gt;
&lt;BR /&gt;
  In order for your 2 separate PROC REPORTs to appear on the same page in the PDF output, I suspect that you have STARTPAGE=NO in your code someplace.&lt;BR /&gt;
&lt;BR /&gt;
  Most style templates have an instruction, called "pagebreakhtml" in the style template, which attaches a CSS style property to the horizontal rule (page-break-after:always). If your browser supports this level of CSS, it is possible that when you print the HTML file using the browser, that each report output would appear on a separate page. (This note further describes the page break behavior with HTML: &lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html#pb)" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html#pb)&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  ODS HTML doesn't have a "startpage" option, so in order to suppress the default page-breaking behavior, you might try to  follow these guidelines from Tech Support: &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/460.html" target="_blank"&gt;http://support.sas.com/kb/23/460.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/630.html" target="_blank"&gt;http://support.sas.com/kb/23/630.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
or switch to a style like Minimal which only uses &amp;lt;hr&amp;gt;.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 07 May 2009 03:22:29 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-05-07T03:22:29Z</dc:date>
    <item>
      <title>ODS HTML and Paging Reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28643#M4429</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
   I have a report that I have written and at the end of the report I need to put another table.  I use proc report for the main report and then another proc report for the final table.  In the PDF version of the report the 2 proc reports appear on the same page, but in the HTML version the proc report appear on separate pages (Have there own titles and footnotes).  My question is; how can I stop the proc reports from appearing on different pages on the HTML version.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Dave</description>
      <pubDate>Thu, 07 May 2009 01:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28643#M4429</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-07T01:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML and Paging Reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28644#M4430</link>
      <description>Hi:&lt;BR /&gt;
  In the normal mode of operation, every procedure starts a new page in a "paged" destination like RTF or PDF. HTML, of course, isn't a "paged" destination. Generally, the only indication in an HTML file of where a page break -would- occur is in the horizontal rule that will separate tables.&lt;BR /&gt;
&lt;BR /&gt;
  In order for your 2 separate PROC REPORTs to appear on the same page in the PDF output, I suspect that you have STARTPAGE=NO in your code someplace.&lt;BR /&gt;
&lt;BR /&gt;
  Most style templates have an instruction, called "pagebreakhtml" in the style template, which attaches a CSS style property to the horizontal rule (page-break-after:always). If your browser supports this level of CSS, it is possible that when you print the HTML file using the browser, that each report output would appear on a separate page. (This note further describes the page break behavior with HTML: &lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html#pb)" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/Template_csstyle.html#pb)&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
  ODS HTML doesn't have a "startpage" option, so in order to suppress the default page-breaking behavior, you might try to  follow these guidelines from Tech Support: &lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/460.html" target="_blank"&gt;http://support.sas.com/kb/23/460.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/23/630.html" target="_blank"&gt;http://support.sas.com/kb/23/630.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
or switch to a style like Minimal which only uses &amp;lt;hr&amp;gt;.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 07 May 2009 03:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28644#M4430</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-07T03:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML and Paging Reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28645#M4431</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
  Thanks for the reply.  Is there anyway to do this on the fly to change the behavior of individual proc reports.  For example - I need 2 proc reports on one "page", but when I start a 3rd proc report I want it to start on a new page?&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Dave Boleyn</description>
      <pubDate>Mon, 11 May 2009 23:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28645#M4431</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-11T23:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML and Paging Reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28646#M4432</link>
      <description>Hi:&lt;BR /&gt;
  I guess it really depends on the destination. For RTF and PDF, yes. For HTML,  since HTML doesn't really have paging, I don't know what you mean when you say you want the report to start on a new "page".&lt;BR /&gt;
&lt;BR /&gt;
  For RTF and PDF, the STARTPAGE= option has syntax (STARTPAGE=NO, STARTPAGE=NOW and STARTPAGE=YES) that would allow you to suppress and start page breaking as you desired.&lt;BR /&gt;
 &lt;BR /&gt;
  For HTML, once you create the HTML file, SAS is out of the picture. All printing is done by the browser/printer interface. While you could turn off the horizontal rule in HTML that appears between procedures, ALL procedures; there's no "on the fly" insertion of page breaks (such as STARTPAGE=NOW, etc) because HTML doesn't support the STARTPAGE= option and because HTML doesn't really have "paging". The closest that HTML comes to the idea of a page break is to use CSS style properties, which "suggest" a place for a compliant browser/printer to put a page break when the HTML output is printed. However, if the browser does not support the CSS spec, then the "suggestion" that SAS puts in the file is ignored. &lt;BR /&gt;
&lt;BR /&gt;
So again, to guarantee the structure you want, page-wise, my suggestion is to look at ODS PDF or ODS RTF and the STARTPAGE= option. &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 12 May 2009 05:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28646#M4432</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-12T05:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML and Paging Reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28647#M4433</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
  Sorry if I was not being clear.  The PDF version of the report is fine.  What I want to do is control the title, footer and horizontal rule in HTML so that when I want multiple proc report outputs grouped together with a title at the top and a footer at the bottom I can.  So what I am asking is can I change the style definition (e.g. pagebreakhtml) midway through an ODS HTML to achieve this behaviour.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Dave Boleyn</description>
      <pubDate>Wed, 13 May 2009 01:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28647#M4433</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-13T01:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS HTML and Paging Reports</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28648#M4434</link>
      <description>Hi:&lt;BR /&gt;
  Well, sort of. What you CAN do is use a style template that does not have the horizontal rule at all (like SEASIDE or NORMAL). Then you can selectively insert a horizontal rule where you want. &lt;BR /&gt;
&lt;BR /&gt;
  Let's talk terminology for a minute. SAS has TITLE and FOOTNOTE statements -- a TITLE goes at top of a particular table, a FOOTNOTE goes at the bottom of a table. HTML does not have the concept of "page" headers and footers. Microsoft Word has HEADERS and FOOTERS -- information that is repeated on every page. so when you say you want Titles and Footers, I hope that was a typo and you want to control the TITLE and FOOTNOTE. HTML does not have the concept of "headers" and "footers" like Microsoft Word.&lt;BR /&gt;
&lt;BR /&gt;
So if you consider this code, then what it produces are 3 tables (I just used PROC PRINT because it was quick) with titles and footnotes for each table. Note that there is NO horizontal rule between the tables.&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
                &lt;BR /&gt;
ods html file='c:\temp\testhr1.html' &lt;BR /&gt;
         style=seaside;&lt;BR /&gt;
                &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
  title 'Title: SASHELP.CLASS';&lt;BR /&gt;
  footnote 'Footnote: At the end of Proc Print';&lt;BR /&gt;
run;&lt;BR /&gt;
                 &lt;BR /&gt;
proc print data=sashelp.retail(obs=3);&lt;BR /&gt;
  title 'Title: SASHELP.RETAIL';&lt;BR /&gt;
  footnote 'Footnote: Retail data';&lt;BR /&gt;
run;&lt;BR /&gt;
                   &lt;BR /&gt;
proc means data=sashelp.shoes min mean max;&lt;BR /&gt;
  title 'Title: SASHELP.SHOES';&lt;BR /&gt;
  footnote 'Footnote: This is the End';&lt;BR /&gt;
  var sales;&lt;BR /&gt;
  class region;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                              &lt;BR /&gt;
Then, you could alter how this looks by selectively using TITLE and FOOTNOTE statements with the &amp;lt;HR&amp;gt; tags in the footnotes where you want them. Something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title; footnote;&lt;BR /&gt;
ods html file='c:\temp\testhr_infoot.html' &lt;BR /&gt;
         style=styles.seaside;&lt;BR /&gt;
                   &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
  title 'Title: SASHELP.CLASS';&lt;BR /&gt;
run;&lt;BR /&gt;
title;&lt;BR /&gt;
            &lt;BR /&gt;
proc print data=sashelp.retail(obs=3);&lt;BR /&gt;
  footnote 'Footnote: At the end of 2nd Proc Print';&lt;BR /&gt;
  footnote2 '&lt;HR size="3" /&gt;';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
                   &lt;BR /&gt;
proc means data=sashelp.shoes min mean max;&lt;BR /&gt;
  title 'Title: SASHELP.SHOES';&lt;BR /&gt;
  footnote 'Footnote: This is the End';&lt;BR /&gt;
  footnote2 '&lt;HR size="3" /&gt;';&lt;BR /&gt;
  var sales;&lt;BR /&gt;
  class region;&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
title; footnote;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
There's probably a 2nd way to do it with ODS HTML TEXT= and a style template, but this seemed the simplest thing to try first.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 13 May 2009 05:38:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-HTML-and-Paging-Reports/m-p/28648#M4434</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-13T05:38:30Z</dc:date>
    </item>
  </channel>
</rss>

