<?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 page width in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492615#M21609</link>
    <description>&lt;P&gt;You might be narrowing on the problem. I was attempting to write a title for my proc report. However, when I used the title "...";&amp;nbsp;statement right before the proc report, it was writing the title at the top of the page instead of above the table produced by&amp;nbsp;proc report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you know why, when&amp;nbsp;creating a pdf file with ods pdf,&amp;nbsp;the title statement before a proc report writes the title at the top of the page instead of right above the table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 12:13:26 GMT</pubDate>
    <dc:creator>Shawn08</dc:creator>
    <dc:date>2018-09-05T12:13:26Z</dc:date>
    <item>
      <title>Proc report page width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492319#M21598</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with the ods pdf extract of my proc report.&lt;/P&gt;&lt;P&gt;I included the compute before _page_ statement in order to put a title to my proc report. The problem I am encountering is that if my title fits on one line, the table will be printed fitting the page width. However, if my title is on 2 lines, then it separates my table in 2. An example can be seen in the following picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22973i02650CF971467040/image-size/large?v=v2&amp;amp;px=999" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only include the proc report part of my program as I think the problem is in this procedure and I excluded the style component of the procedure to only concentrate on how it prints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report nowd data = table_&amp;amp;&amp;amp;a._dept&amp;amp;&amp;amp;i._&amp;amp;&amp;amp;l. style=[background = white outputwidth=100%] style(report)={outputwidth=100%};
			column (name &amp;amp;&amp;amp;t. &amp;amp;&amp;amp;u. &amp;amp;&amp;amp;v. &amp;amp;&amp;amp;w. &amp;amp;&amp;amp;x. &amp;amp;&amp;amp;y);
			define name / display "";
			define &amp;amp;&amp;amp;t. / display "&amp;amp;&amp;amp;n.";
			define &amp;amp;&amp;amp;u. / display "&amp;amp;&amp;amp;o.";
			define &amp;amp;&amp;amp;v. / display "&amp;amp;&amp;amp;p.";
			define &amp;amp;&amp;amp;w. / display "&amp;amp;&amp;amp;q.";
			define &amp;amp;&amp;amp;x. / display "&amp;amp;&amp;amp;r.";
			define &amp;amp;&amp;amp;y. / display "&amp;amp;&amp;amp;s.";
			compute before _page_ / style={fontfamily="times new roman" just=l fontsize=12pt background=white borderbottomcolor=white borderleftcolor=white borderrightcolor=white bordertopcolor=white color=black};
				line "&amp;amp;&amp;amp;k.";
			endcomp;
		run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 14:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492319#M21598</guid>
      <dc:creator>Shawn08</dc:creator>
      <dc:date>2018-09-04T14:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report page width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492510#M21606</link>
      <description>Hi:&lt;BR /&gt;  Without data to test and since you are using Macro variables for everything, it is nearly impossible to make any suggestions. For anyone to replicate your issue, they would have to completely re-create your data and your macro code.&lt;BR /&gt;&lt;BR /&gt;  If you cannot post ALL your code and some data here in the Forum, then your best resource might be SAS Tech Support, since they can look at all your code and all your data and keep it confidential.&lt;BR /&gt;&lt;BR /&gt;  The reason someone needs to see ALL your code is that with ODS PDF, settings like UNIFORM, Margins, PAPERSIZE all come into play.&lt;BR /&gt;&lt;BR /&gt;  One suggestion that I can think of is to try to specify a slightly smaller font size for the COMPUTE BEFORE _PAGE_ -- see what happens at 11pt or 10pt. &lt;BR /&gt;&lt;BR /&gt;  What you're writing is NOT a SAS title. It is mimicking a title, but you are writing a LINE with a PROC REPORT LINE statement. That means you need to make sure that what you write with the LINE statement has to fit within the boundaries of the table, border lines included -- NOT within the margins, like the title.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 05 Sep 2018 00:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492510#M21606</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-05T00:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report page width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492534#M21607</link>
      <description>&lt;P&gt;It looks as if the break takes place because the entry in column 1 is too long for the table to fit, not because of the titles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 03:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492534#M21607</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-09-05T03:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report page width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492615#M21609</link>
      <description>&lt;P&gt;You might be narrowing on the problem. I was attempting to write a title for my proc report. However, when I used the title "...";&amp;nbsp;statement right before the proc report, it was writing the title at the top of the page instead of above the table produced by&amp;nbsp;proc report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you know why, when&amp;nbsp;creating a pdf file with ods pdf,&amp;nbsp;the title statement before a proc report writes the title at the top of the page instead of right above the table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492615#M21609</guid>
      <dc:creator>Shawn08</dc:creator>
      <dc:date>2018-09-05T12:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report page width</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492639#M21610</link>
      <description>Hi:&lt;BR /&gt;  Adobe has very strict page layout constraints. A SAS title never would be placed in the middle of a page. A SAS title always goes at the top of a page and any TITLE statements between procedures, when you have STARTPAGE=NO are ignored.&lt;BR /&gt;&lt;BR /&gt;  When you use ODS PDF, those "between table" captions cannot be written with a TITLE statement, as you discovered. They need to either be written with COMPUTE BEFORE _PAGE_ as you show or they need to be written using ODS TEXT statements. If you use ODS TEXT, then you have to either change the style template for CLASS USERTEXT, to make it justify and font the way you want or you have to use ODS ESCAPECHAR.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 05 Sep 2018 13:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-page-width/m-p/492639#M21610</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-05T13:01:41Z</dc:date>
    </item>
  </channel>
</rss>

