<?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: How do i remove from table of contents just one variable  (not all) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933683#M367211</link>
    <description>&lt;P&gt;I do want in by statment but i don't want in to table of contents&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jun 2024 14:56:06 GMT</pubDate>
    <dc:creator>mmkr</dc:creator>
    <dc:date>2024-06-25T14:56:06Z</dc:date>
    <item>
      <title>How do i remove from table of contents just one variable  (not all)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933675#M367206</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do i remove from table of contents just one variable (not all)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I jsut want to remove age from table of contents but show sex&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as by variable have 2 variables sex and age but table of contents i need only one show up&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=sashelp.class out=output;by sex age;run;&lt;BR /&gt;proc freq data=output noprint;&lt;BR /&gt;table age/out=age;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%macro report(age=);&lt;BR /&gt;proc report data=output nowd;by sex age;&lt;BR /&gt;where age=&amp;amp;age.;&lt;BR /&gt;run;&lt;BR /&gt;ods pdf startpage=now;&lt;BR /&gt;proc odstext;&lt;BR /&gt;p 'Signature: ________________'/style={fontsize=8 just=r};&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods pdf file='c:\temp\temp.pdf' ;&lt;BR /&gt;options nodate nonumber;&lt;BR /&gt;title j=r ' PageNo:(*ESC*){thispage} ';&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;set age;&lt;BR /&gt;call execute(catt('%report(age=',age,')'));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="mmkr_0-1719321734989.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97877i1DE57EA8FF5EE184/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmkr_0-1719321734989.png" alt="mmkr_0-1719321734989.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 13:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933675#M367206</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-25T13:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do i remove from table of contents just one variable  (not all)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933681#M367209</link>
      <description>&lt;P&gt;In your report macro, remove AGE from the PROC REPORT BY statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=output nowd;by sex ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jun 2024 14:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933681#M367209</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-06-25T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do i remove from table of contents just one variable  (not all)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933683#M367211</link>
      <description>&lt;P&gt;I do want in by statment but i don't want in to table of contents&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 14:56:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933683#M367211</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-25T14:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: How do i remove from table of contents just one variable  (not all)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933688#M367214</link>
      <description>&lt;P&gt;Look at the ODS PDF option PDFTOC=n. If N is 1 then only one level should appear in the TOC, 2 levels, etc. For your example I think that you want PDFTOC=1The default is 0 which means "all levels".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that only the LAST specification of the option is used in the document, so while multiple settings on different ODS PDF statements for the same document are not syntax errors only the last one will be applied when the document is displaye.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 15:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-i-remove-from-table-of-contents-just-one-variable-not-all/m-p/933688#M367214</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-25T15:54:42Z</dc:date>
    </item>
  </channel>
</rss>

