<?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 TOC and nolabel global option / proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-TOC-and-nolabel-global-option-proc-report/m-p/765229#M25280</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can explain the change in label in the TOC for proclabel using : &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_010/odsug/p1oavvfpbhmsw0n1u2dj5fz9ur9m.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_010/odsug/p1oavvfpbhmsw0n1u2dj5fz9ur9m.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure how to explain it for the contents= option of the proc report statement as I cannot see "Report" in the proc document output. Is there some documentation about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*options label;
options nolabel;

data class;
    set sashelp.class;
    retain xxtable 1 ;
run;

ods pdf file ="&amp;amp;xxtest./reporting/ods_test.pdf";

proc report data=class;
    column sex--weight;
    define sex--weight / display;   
run;
   
ods proclabel 'Procedure';

proc report data=class contents='Category';
    column xxtable sex--weight;
    define xxtable     / order noprint;
    define sex--weight / display;
    
    break before xxtable / contents = 'Table' page;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;TOC when label global option is used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toc_label.JPG" style="width: 316px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63191i7BE88B6E249C46FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="toc_label.JPG" alt="toc_label.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TOC when nolabel global option is used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toc_nolabel.JPG" style="width: 321px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63192i1E452679534BEF10/image-size/large?v=v2&amp;amp;px=999" role="button" title="toc_nolabel.JPG" alt="toc_nolabel.JPG" /&gt;&lt;/span&gt;&lt;/P&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;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=xxtest(write); 
    
proc report data=class;
    column sex--weight;
    define sex--weight / display;   
run;
    
ods document close; 
 
proc document name=xxtest;    
    list/levels=all  details;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc_document_list.JPG" style="width: 903px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63193iD3D62CFCE9956597/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc_document_list.JPG" alt="proc_document_list.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 06:31:30 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2021-09-01T06:31:30Z</dc:date>
    <item>
      <title>ods TOC and nolabel global option / proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-TOC-and-nolabel-global-option-proc-report/m-p/765229#M25280</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I can explain the change in label in the TOC for proclabel using : &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_010/odsug/p1oavvfpbhmsw0n1u2dj5fz9ur9m.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/v_010/odsug/p1oavvfpbhmsw0n1u2dj5fz9ur9m.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure how to explain it for the contents= option of the proc report statement as I cannot see "Report" in the proc document output. Is there some documentation about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*options label;
options nolabel;

data class;
    set sashelp.class;
    retain xxtable 1 ;
run;

ods pdf file ="&amp;amp;xxtest./reporting/ods_test.pdf";

proc report data=class;
    column sex--weight;
    define sex--weight / display;   
run;
   
ods proclabel 'Procedure';

proc report data=class contents='Category';
    column xxtable sex--weight;
    define xxtable     / order noprint;
    define sex--weight / display;
    
    break before xxtable / contents = 'Table' page;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;TOC when label global option is used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toc_label.JPG" style="width: 316px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63191i7BE88B6E249C46FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="toc_label.JPG" alt="toc_label.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;TOC when nolabel global option is used.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="toc_nolabel.JPG" style="width: 321px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63192i1E452679534BEF10/image-size/large?v=v2&amp;amp;px=999" role="button" title="toc_nolabel.JPG" alt="toc_nolabel.JPG" /&gt;&lt;/span&gt;&lt;/P&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;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods document name=xxtest(write); 
    
proc report data=class;
    column sex--weight;
    define sex--weight / display;   
run;
    
ods document close; 
 
proc document name=xxtest;    
    list/levels=all  details;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc_document_list.JPG" style="width: 903px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63193iD3D62CFCE9956597/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc_document_list.JPG" alt="proc_document_list.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 06:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-TOC-and-nolabel-global-option-proc-report/m-p/765229#M25280</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2021-09-01T06:31:30Z</dc:date>
    </item>
  </channel>
</rss>

