<?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 PDF report: Adjusting position of Table of Contents in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791611#M253598</link>
    <description>&lt;P&gt;Remove this line?&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;ods pdf text="^20n";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Jan 2022 00:43:31 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2022-01-22T00:43:31Z</dc:date>
    <item>
      <title>ODS PDF report: Adjusting position of Table of Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791595#M253587</link>
      <description>&lt;P&gt;I am creating a multi-page pdf report containing a cover page and a table of contents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page 1 (cover page) is fine.&amp;nbsp; On page 2, how do I move the Table of Contents so that is starts closer to the top of the page instead of starting at the middle of the page?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sas_pdf_cover_page_toc_page.PNG" style="width: 326px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67621iB12F9EC82035A597/image-size/large?v=v2&amp;amp;px=999" role="button" title="sas_pdf_cover_page_toc_page.PNG" alt="sas_pdf_cover_page_toc_page.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's my code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
options nodate /*nonumber*/ ORIENTATION=portrait
topmargin = .01in bottommargin = .01in leftmargin = .01in rightmargin = .01in;
ods escapechar = "^";
ODS pdf file='C:\user\BP23\Express_v6\FY23_Plan_Visualizations.pdf' startpage=no notoc;
ods noproctitle; 

data test;
   text="^nFY23 Express Business Plan:^nData Tables &amp;amp; Visualizations";
run;

* Insert a logo and blank lines (used to move the title text to the center of page);
ods pdf text='^S={preimage="C:\user\BP23\Express_v6\fedex_big_logo.png"}';
ods pdf text="^20n";

* Output the title text;
proc report data=test noheader center   
     style(report)={rules=none frame=void} 
     style(column)={font_weight=bold font_size=20pt just=c};
run;
ods pdf startpage=now;

*****start of table of contents;&lt;BR /&gt;
data test;
   text="^nTable of Contents^n
   ^nSmall Package:
         ^nPO............................3
         ^**bleep**............................4
^nIE............................5
^nTD............................6
^nE2............................7
^nSO............................8^n 
^nFreight:
^nIPFS.........................9
^nIEF.........................10
^nF1............................11
^nIXF...........................12
^nSpecial Aggregates:
^nTotal Express................13
^nE-Commerce...................14
^nBusiness-to-Business (B2B)...15
";
run;

* Insert a logo and blank lines (used to move the title text to the center of page);
ods pdf text='^S={preimage="C:\user\BP23\Express_v6\fedex_big_logo.png"}';
ods pdf text="^20n";

* Output the title text;
proc report data=test noheader   
     style(report)={rules=none frame=void} 
     style(column)={font_weight=bold font_size=20pt just=c};
run;
ods pdf startpage=now;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 21:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791595#M253587</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2022-01-21T21:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF report: Adjusting position of Table of Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791611#M253598</link>
      <description>&lt;P&gt;Remove this line?&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;ods pdf text="^20n";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Jan 2022 00:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791611#M253598</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2022-01-22T00:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF report: Adjusting position of Table of Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791615#M253599</link>
      <description>&lt;P&gt;A minor style suggestion: Move creation of all data sets out of your ODS destination/ ods destination close "sandwich". It will make the output creation more obvious and shorten that code. If you recreate the same data set many times, such as would happen with a test of different report or graph options, you may add significant time to your program run time and test cycles.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jan 2022 01:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/791615#M253599</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-01-22T01:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF report: Adjusting position of Table of Contents</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/792213#M253821</link>
      <description>&lt;P&gt;That's it!&amp;nbsp; After removing the line&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf text="^20n";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the table of contents page section, the positioning is perfect:&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="fixed.PNG" style="width: 310px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67775iD70C33454A8E00C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="fixed.PNG" alt="fixed.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 16:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-PDF-report-Adjusting-position-of-Table-of-Contents/m-p/792213#M253821</guid>
      <dc:creator>Jack1</dc:creator>
      <dc:date>2022-01-25T16:02:33Z</dc:date>
    </item>
  </channel>
</rss>

