<?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: Table of Contents-Page number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593537#M170344</link>
    <description>&lt;P&gt;ODS output is created as RTF.Q1 and Q2 are question numbers&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 20:28:01 GMT</pubDate>
    <dc:creator>GG_DH</dc:creator>
    <dc:date>2019-10-02T20:28:01Z</dc:date>
    <item>
      <title>Table of Contents-Page number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593511#M170328</link>
      <description>&lt;P&gt;I am trying to assign page numbers for table of contents .like below : 2,7 are page numbers&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Q1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABCD.....................................................2&lt;/P&gt;&lt;P&gt;q2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XYZA......................................................7&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 19:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593511#M170328</guid>
      <dc:creator>GG_DH</dc:creator>
      <dc:date>2019-10-02T19:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table of Contents-Page number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593532#M170340</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/293424"&gt;@GG_DH&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am trying to assign page numbers for table of contents .like below : 2,7 are page numbers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Q1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ABCD.....................................................2&lt;/P&gt;
&lt;P&gt;q2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XYZA......................................................7&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First, it may help to provide how you are creating the output that should have the output. The basic approach varies a bit between the types of ODS&amp;nbsp;output you create such as PDF or RTF. Some ODS destinations do not have the concept of page so this would get somewhat more problematic in that case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second, are you attempting to assign a specific value or have the page number that a SAS output object (table or graph) appears on as generated by code?&lt;/P&gt;
&lt;P&gt;And what is Q1 and Q2 doing there?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 20:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593532#M170340</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-02T20:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table of Contents-Page number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593537#M170344</link>
      <description>&lt;P&gt;ODS output is created as RTF.Q1 and Q2 are question numbers&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 20:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593537#M170344</guid>
      <dc:creator>GG_DH</dc:creator>
      <dc:date>2019-10-02T20:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: Table of Contents-Page number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593549#M170353</link>
      <description>&lt;P&gt;Here is a very brief example of creating an RTF document with a table of contents. The first tricky part is that you have to tell Word (or likely other word processor or viewer program) to display the table. When you open the RTF file generated below you have to right click just below the "Table of Contents" text and select the "update table" from the menu. If that option is not there then you may need to try clicking somewhere left, right or closer the table of contents.&lt;/P&gt;
&lt;P&gt;Specify a path for the output on your computer.&lt;/P&gt;
&lt;PRE&gt;ods rtf file="&amp;lt;path&amp;gt;\junk.rtf"
style=meadow contents toc_data;

Title "Print of SASHELP.Class";
proc print data=sashelp.class;
run;

title "Age summary from Sashelp.class";
proc means data=sashelp.class;
   var age;
run;
title;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;The table of contents will generally hold things like procedure name, title statements and By group results. Some procedures have options like Description or Contents that may also generate output for the Table of contents.&lt;/P&gt;
&lt;P&gt;You can change the default procedure text using the ODS PROCLABEL statement. Or ODS Proctitle/noproctitle to suppress procedure descriptions.&lt;/P&gt;
&lt;P&gt;So, how do you intend to get "question numbers" into those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you may end up in Proc Document to assemble things if the defaults don't work quite as you want.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 21:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-of-Contents-Page-number/m-p/593549#M170353</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-02T21:03:20Z</dc:date>
    </item>
  </channel>
</rss>

