<?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 ods pdf table of contents - byval and missing contents in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-table-of-contents-byval-and-missing-contents/m-p/628619#M23804</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to question with respect to the table of contens in PDF files when using the table of contents options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let xxdemo = ...;

proc format;
    value $sex 'M'='Male'
               'F'='Female';
run;              

proc sort data=sashelp.class out=class;
    by descending sex;
run;

data class;
    set class;
    dummy=0;
    format sex $sex.;
run;

options nobyline;

ods pdf file ="&amp;amp;xxdemo./reporting/test.pdf" startpage=no contents;

ods proclabel 'Level 1';

title '#byval(sex)';

proc report data=class  contents='Level 2';
    by descending sex;
    column dummy sex age;
    define dummy  / order noprint;
    define sex    / display;
    define age    / display;   
    break before dummy / contents = 'Level 3' page;
run;


ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q1.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36481i0BD4E92D867D6B69/image-size/large?v=v2&amp;amp;px=999" role="button" title="q1.JPG" alt="q1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the output, we can see that the table of contents include Sex=Male and Sex=Female. How to replace it&amp;nbsp; with a value like the one in the title i.e. #byval1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let xxdemo = ...

proc format;
    value $sex 'M'='Male'
               'F'='Female';
run;              

proc sort data=sashelp.class out=class;
    by descending sex;
run;

data class;
    set class;
    dummy=0;
    format sex $sex.;
run;

options nobyline;

ods pdf file ="&amp;amp;xxdemo./reporting/test.pdf" startpage=no contents;

ods proclabel ' ';

title '#byval(sex)';

proc report data=class  contents=' ';
    by descending sex;
    column dummy sex age;
    define dummy  / order noprint;
    define sex    / display;
    define age    / display;   
    break before dummy / contents = ' ' page;
run;


ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36482i899573E260B0102E/image-size/large?v=v2&amp;amp;px=999" role="button" title="q2.JPG" alt="q2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example, the text of levels 1, 2 and 3 are removed. but we still get the lines in the table of contents created with the contents option. How to remove them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 00:54:27 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2020-03-02T00:54:27Z</dc:date>
    <item>
      <title>ods pdf table of contents - byval and missing contents</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-table-of-contents-byval-and-missing-contents/m-p/628619#M23804</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to question with respect to the table of contens in PDF files when using the table of contents options.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let xxdemo = ...;

proc format;
    value $sex 'M'='Male'
               'F'='Female';
run;              

proc sort data=sashelp.class out=class;
    by descending sex;
run;

data class;
    set class;
    dummy=0;
    format sex $sex.;
run;

options nobyline;

ods pdf file ="&amp;amp;xxdemo./reporting/test.pdf" startpage=no contents;

ods proclabel 'Level 1';

title '#byval(sex)';

proc report data=class  contents='Level 2';
    by descending sex;
    column dummy sex age;
    define dummy  / order noprint;
    define sex    / display;
    define age    / display;   
    break before dummy / contents = 'Level 3' page;
run;


ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q1.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36481i0BD4E92D867D6B69/image-size/large?v=v2&amp;amp;px=999" role="button" title="q1.JPG" alt="q1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the output, we can see that the table of contents include Sex=Male and Sex=Female. How to replace it&amp;nbsp; with a value like the one in the title i.e. #byval1?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Question 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let xxdemo = ...

proc format;
    value $sex 'M'='Male'
               'F'='Female';
run;              

proc sort data=sashelp.class out=class;
    by descending sex;
run;

data class;
    set class;
    dummy=0;
    format sex $sex.;
run;

options nobyline;

ods pdf file ="&amp;amp;xxdemo./reporting/test.pdf" startpage=no contents;

ods proclabel ' ';

title '#byval(sex)';

proc report data=class  contents=' ';
    by descending sex;
    column dummy sex age;
    define dummy  / order noprint;
    define sex    / display;
    define age    / display;   
    break before dummy / contents = ' ' page;
run;


ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="q2.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36482i899573E260B0102E/image-size/large?v=v2&amp;amp;px=999" role="button" title="q2.JPG" alt="q2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this example, the text of levels 1, 2 and 3 are removed. but we still get the lines in the table of contents created with the contents option. How to remove them?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 00:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-table-of-contents-byval-and-missing-contents/m-p/628619#M23804</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2020-03-02T00:54:27Z</dc:date>
    </item>
  </channel>
</rss>

