<?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: Limit titles to first page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630864#M23842</link>
    <description>ods pdf file='\\XXXXXXXXXXXXXXXX\onlyfirst.pdf' notoc;&lt;BR /&gt;&lt;BR /&gt;data test;&lt;BR /&gt;set sashelp.shoes;&lt;BR /&gt;rownum=_n_;&lt;BR /&gt;run;&lt;BR /&gt;data test1;&lt;BR /&gt;set test;&lt;BR /&gt;if rownum&amp;lt;34;&lt;BR /&gt;run;&lt;BR /&gt;data test2;&lt;BR /&gt;set test;&lt;BR /&gt;if rownum&amp;gt;33;&lt;BR /&gt;run;&lt;BR /&gt;proc report data=test1 nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;title 'Title on First Page Only';&lt;BR /&gt;run;&lt;BR /&gt;proc report data=test2 nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;title;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Mar 2020 11:32:14 GMT</pubDate>
    <dc:creator>SASFiddler</dc:creator>
    <dc:date>2020-03-10T11:32:14Z</dc:date>
    <item>
      <title>Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31912#M4748</link>
      <description>Thank you in advance..&lt;BR /&gt;
&lt;BR /&gt;
I have a dataset that has more than 500 records and i have to produce a pdf file output &lt;BR /&gt;
out of it using ods pdf destination in sas enterprise guide but the titles are appearing in every page which i don't want. I have titles with macro variables in it and they should appear in only first page. i tried using compute block with _page_ but by doing so i am getting line statements in all pdf pages. Is there any way to restrict titles to first page?&lt;BR /&gt;
Thank you.</description>
      <pubDate>Thu, 17 Mar 2011 04:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31912#M4748</guid>
      <dc:creator>hari1109</dc:creator>
      <dc:date>2011-03-17T04:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31913#M4749</link>
      <description>Hi.&lt;BR /&gt;
You can use a " proc print " before " proc report " .&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 17 Mar 2011 06:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31913#M4749</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-03-17T06:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31914#M4750</link>
      <description>Hi:&lt;BR /&gt;
  Or, you could use two PROC REPORT steps. The bottom line, is that you have to figure out how many obs "fit" on the first page. For the default style, using SASHELP.SHOES, I can get 33 obs on the first page with 1/2 inch margins at the top and bottom of the page:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=portrait topmargin=.5in bottommargin=.5in nodate nonumber;&lt;BR /&gt;
 title; footnote;&lt;BR /&gt;
ods pdf file='c:\temp\onlyfirst.pdf' notoc;&lt;BR /&gt;
        &lt;BR /&gt;
proc report data=sashelp.shoes(firstobs=1 obs=33) nowd;&lt;BR /&gt;
  column region subsidiary product sales inventory returns;&lt;BR /&gt;
  title 'Title on First Page Only';&lt;BR /&gt;
run;&lt;BR /&gt;
       &lt;BR /&gt;
&lt;B&gt; title; &lt;/B&gt;   /* clears previous title */&lt;BR /&gt;
proc report data=sashelp.shoes(firstobs=34 obs=max) nowd;&lt;BR /&gt;
  column region subsidiary product sales inventory returns;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                       &lt;BR /&gt;
Since the TITLE statement can only be cleared between procedure steps, the second proc report picks up displaying observations with firstobs=34, but AFTER the title has been cleared with a null TITLE statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 17 Mar 2011 14:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31914#M4750</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-17T14:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31915#M4751</link>
      <description>Of course, this solution assumes that you have no summary lines in the report.  When you have summary lines in the report, splitting the dataset into two parts does not work.  I have also run into this problem and I never found an acceptable alternative.  See &lt;A href="http://support.sas.com/forums/thread.jspa?messageID=40487鸧" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=40487鸧&lt;/A&gt;.</description>
      <pubDate>Thu, 17 Mar 2011 15:07:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31915#M4751</guid>
      <dc:creator>polingjw</dc:creator>
      <dc:date>2011-03-17T15:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31916#M4752</link>
      <description>You're right -- if you need any kind of summary information that includes what was on the first "page" then you have to do some fiddling to make it work -- but that's the difference between a word processor (that allows you to treat the first page differently from the other pages) and a report generator -- that treats the titles and footnotes as "global" statements which apply to the whole report. &lt;BR /&gt;
 &lt;BR /&gt;
You can't analyze 10 years of census data in Word, but you can get a separate title on the first page. You CAN analyze and report on 10 years of census data in SAS -- but by default all pages on the report get the same title. SAS isn't a Word processor -- SAS, using ODS, can create Word processor readable documents -- but with limits.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 17 Mar 2011 15:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31916#M4752</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-17T15:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31917#M4753</link>
      <description>Thank you guys for the suggestions. i will look into those and let you know if it is working.</description>
      <pubDate>Thu, 17 Mar 2011 18:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31917#M4753</guid>
      <dc:creator>hari1109</dc:creator>
      <dc:date>2011-03-17T18:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31918#M4754</link>
      <description>Possibly using ODS PDF Text="&lt;TITLE text=""&gt;" before your procedure call. Add appearance options as needed/available.&lt;BR /&gt;
&lt;BR /&gt;
I don't use PDF much but have done this MANY times for RTF output when I have similar needs.&lt;/TITLE&gt;</description>
      <pubDate>Thu, 17 Mar 2011 20:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31918#M4754</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-03-17T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31919#M4755</link>
      <description>I used the code&lt;BR /&gt;
Cynthia has suggested and it is working fine. Thank you very much.</description>
      <pubDate>Sun, 20 Mar 2011 03:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31919#M4755</guid>
      <dc:creator>hari1109</dc:creator>
      <dc:date>2011-03-20T03:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31920#M4756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just Signed up to Thank Cynthia. It has been a hell of a problem for me before I visited this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You again Cynthia.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2012 18:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/31920#M4756</guid>
      <dc:creator>santos_stats</dc:creator>
      <dc:date>2012-04-19T18:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/595667#M23378</link>
      <description>&lt;P&gt;Print with title and report without title:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods ...&lt;BR /&gt;title2 'AAAAAA';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=...;&lt;BR /&gt;var ...;&lt;BR /&gt;label ...&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;title2 '';&lt;BR /&gt;proc report data=...;&lt;BR /&gt;column ...;&lt;BR /&gt;by ...;&lt;BR /&gt;DEFINE ...;&lt;BR /&gt;format ...;&lt;BR /&gt;run;&lt;BR /&gt;ods ...&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/595667#M23378</guid>
      <dc:creator>SASFiddler</dc:creator>
      <dc:date>2019-10-11T08:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630685#M23834</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have ods rtf with title only in the fisrt page.&lt;/P&gt;&lt;P&gt;I tried your code (for pdf), I have the title on the 2 first pages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf file='\\XXXXXXXX\TEST\onlyfirst.pdf' notoc;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.shoes(firstobs=1 obs=33) nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;title 'Title on First Page Only';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title; /* clears previous title */&lt;BR /&gt;proc report data=sashelp.shoes(firstobs=34 obs=max) nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you know some option to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 17:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630685#M23834</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-09T17:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630727#M23835</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I do not have that experience with your code, SASHELP.SHOES and ODS PDF, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="only_first.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36713i7919DA111657E2F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="only_first.png" alt="only_first.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without knowing your orientation and margin options, I could not completely replicate your experience, but I used the options shown in the above screen shot and the title on page 1 worked for me. If you use the SAME options and orientation and margins and still get the title starting on page 2, then you might want to open a track with Tech Support for deeper investigation about your system settings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 19:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630727#M23835</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-03-09T19:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630829#M23837</link>
      <description>&lt;P&gt;Thank you Cynthia.&lt;/P&gt;&lt;P&gt;My problem is that I want the landscape format for my report.&lt;/P&gt;&lt;P&gt;This code does not work with landscape option.&lt;/P&gt;&lt;P&gt;Maybe you have some idea for additional option with lanscape format please. My code is:&lt;/P&gt;&lt;P&gt;options orientation=landscape topmargin=.5in bottommargin=.5in nodate nonumber;&lt;/P&gt;&lt;P&gt;title; footnote;&lt;BR /&gt;ods rtf file='\\XXXXXXXXXXXXXX\4. Résultats excel\3. Publipostage\TEST\onlyfirst.doc' ;&lt;BR /&gt;proc report data=sashelp.shoes(firstobs=1 obs=33) nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;title 'Title on First Page Only';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title;&lt;BR /&gt;proc report data=sashelp.shoes(firstobs=34 obs=max) nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630829#M23837</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-10T09:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630830#M23838</link>
      <description>ods pdf file='\\XXXXXXXXXX\onlyfirst.pdf' notoc;&lt;BR /&gt;options NOBYLINE;&lt;BR /&gt;proc report data=sashelp.shoes nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;by Region Subsidiary;&lt;BR /&gt;title 'Title on First Page Only "#BYLINE"';&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That may help some.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630830#M23838</guid>
      <dc:creator>SASFiddler</dc:creator>
      <dc:date>2020-03-10T09:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630837#M23839</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the code.&lt;/P&gt;&lt;P&gt;Unfortunately,&lt;/P&gt;&lt;P&gt;I have the same proble: the title on the ALL pages:&lt;/P&gt;&lt;P&gt;My programme is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf file='\\XXXXXX\TEST\onlyfirst.pdf' notoc;&lt;BR /&gt;options NOBYLINE;&lt;BR /&gt;proc report data=sashelp.shoes nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;by Region Subsidiary;&lt;BR /&gt;title 'Title on First Page Only "#BYLINE"';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 09:49:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630837#M23839</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-10T09:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630844#M23840</link>
      <description>You could use an additional variable to indicate the first page;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods pdf file='\\helsinki1.hki.local\kymp\Maankäyttö\Tutkimukset_ja_selvitykset\Liikennetutkimus\Helmi\Liikennelaskennat\onlyfirst.pdf' notoc;&lt;BR /&gt;options NOBYLINE;&lt;BR /&gt;proc report data=sashelp.shoes nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;by Region Subsidiary;&lt;BR /&gt;title 'Title on First Page Only "#BYLINE"';&lt;BR /&gt;run;&lt;BR /&gt;options BYLINE;&lt;BR /&gt;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2020 10:26:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630844#M23840</guid>
      <dc:creator>SASFiddler</dc:creator>
      <dc:date>2020-03-10T10:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630848#M23841</link>
      <description>&lt;P&gt;Thank you, still does not work for me, I have the titles on ALL pages:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods pdf file='\\XXXXXX\4. Résultats excel\3. Publipostage\TEST\onlyfirst.pdf' notoc;&lt;BR /&gt;options NOBYLINE;&lt;BR /&gt;proc report data=sashelp.shoes nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;by Region Subsidiary;&lt;BR /&gt;title 'Title on First Page Only "#BYLINE"';&lt;BR /&gt;run;&lt;BR /&gt;options BYLINE;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 10:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630848#M23841</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-03-10T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630864#M23842</link>
      <description>ods pdf file='\\XXXXXXXXXXXXXXXX\onlyfirst.pdf' notoc;&lt;BR /&gt;&lt;BR /&gt;data test;&lt;BR /&gt;set sashelp.shoes;&lt;BR /&gt;rownum=_n_;&lt;BR /&gt;run;&lt;BR /&gt;data test1;&lt;BR /&gt;set test;&lt;BR /&gt;if rownum&amp;lt;34;&lt;BR /&gt;run;&lt;BR /&gt;data test2;&lt;BR /&gt;set test;&lt;BR /&gt;if rownum&amp;gt;33;&lt;BR /&gt;run;&lt;BR /&gt;proc report data=test1 nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;title 'Title on First Page Only';&lt;BR /&gt;run;&lt;BR /&gt;proc report data=test2 nowd;&lt;BR /&gt;column region subsidiary product sales inventory returns;&lt;BR /&gt;title;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Mar 2020 11:32:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630864#M23842</guid>
      <dc:creator>SASFiddler</dc:creator>
      <dc:date>2020-03-10T11:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630990#M23845</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Using the default style, I could NOT get 33 obs on a landscape page, so I changed just a few things -- I made the margins even smaller, but at best, I had to change the first page to only hold &lt;STRONG&gt;26&lt;/STRONG&gt; obs not the 33 you had,&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="landscape.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36726i3EA9B87EF9599B8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="landscape.png" alt="landscape.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And here's the output, as I expected, with the title only on the FIRST page:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="land_pdf.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36727iD322ABDF9F9A0C00/image-size/large?v=v2&amp;amp;px=999" role="button" title="land_pdf.png" alt="land_pdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ONLY way I discovered to get 33 obs on the first page was to override the cellpadding, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="change_cellpadding.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36730iFDB5927CAB2A5439/image-size/large?v=v2&amp;amp;px=999" role="button" title="change_cellpadding.png" alt="change_cellpadding.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; However, this all works for me with ODS PDF and SASHELP.CARS -- I can get the title just on the first page in landscape or portrait.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you run similar code and you get the title on ALL pages in the landscape PDF file, even after adjusting the number of obs, that is a problem that needs to be reported to Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:12:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/630990#M23845</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-03-10T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Limit titles to first page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/631209#M23847</link>
      <description>&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/td-p/1232" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/td-p/1232&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this still works.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Mar 2020 11:54:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Limit-titles-to-first-page/m-p/631209#M23847</guid>
      <dc:creator>SASFiddler</dc:creator>
      <dc:date>2020-03-11T11:54:31Z</dc:date>
    </item>
  </channel>
</rss>

