<?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: PDF bookmark issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866392#M342132</link>
    <description>&lt;P&gt;What that link does to seem to spell out is that you cannot use the BREAK statement if you don't have any group variables.&amp;nbsp; And the trick of setting CONTENTS="" PAGE does not work to suppress that TOC entry when used on the RBREAK statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to add a variable and define it as GROUP in the report.&amp;nbsp; Then you can use the BREAK statement.&amp;nbsp; You can use the NOPRINT option so the extra variable does not print.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="c:\downloads\text_1.pdf" ;
ods proclabel "This is an example";
data for_report; set sashelp.class;
 groupvar=1;
run;
proc report data=for_report contents= "" nowd;
 define groupvar / group noprint;
 break before groupvar / 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="Tom_0-1679849284443.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82071i04FFEA0ADE1F9AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1679849284443.png" alt="Tom_0-1679849284443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Mar 2023 16:48:11 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-03-26T16:48:11Z</dc:date>
    <item>
      <title>PDF bookmark issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866389#M342130</link>
      <description>&lt;P&gt;I have a PDF bookmark issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="text_1.pdf" ;
ods proclabel "This is an example";
Proc report data=sashelp.class contents= "" nowd;
Run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the output is like below. My question is how to remove the yellow marked part quickly. I only want one level of bookmark. Thanks&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="Capture.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82070i293F068091525F7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 16:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866389#M342130</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2023-03-26T16:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: PDF bookmark issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866390#M342131</link>
      <description>Hi:&lt;BR /&gt;  Review this Tech Support note: &lt;A href="https://support.sas.com/kb/31/278.html" target="_blank"&gt;https://support.sas.com/kb/31/278.html&lt;/A&gt; and you'll see the code to remove this extra Table 1 node. This node is generated by PROC REPORT, so you need to use PROC REPORT to remove it.&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 26 Mar 2023 16:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866390#M342131</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-03-26T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: PDF bookmark issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866392#M342132</link>
      <description>&lt;P&gt;What that link does to seem to spell out is that you cannot use the BREAK statement if you don't have any group variables.&amp;nbsp; And the trick of setting CONTENTS="" PAGE does not work to suppress that TOC entry when used on the RBREAK statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you need to add a variable and define it as GROUP in the report.&amp;nbsp; Then you can use the BREAK statement.&amp;nbsp; You can use the NOPRINT option so the extra variable does not print.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="c:\downloads\text_1.pdf" ;
ods proclabel "This is an example";
data for_report; set sashelp.class;
 groupvar=1;
run;
proc report data=for_report contents= "" nowd;
 define groupvar / group noprint;
 break before groupvar / 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="Tom_0-1679849284443.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82071i04FFEA0ADE1F9AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1679849284443.png" alt="Tom_0-1679849284443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 16:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866392#M342132</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-26T16:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: PDF bookmark issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866394#M342133</link>
      <description>&lt;P&gt;Side question:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why does PROC REPORT treat &lt;FONT face="courier new,courier"&gt;CONTENTS=''&amp;nbsp;&lt;/FONT&gt; different than &lt;FONT face="courier new,courier"&gt;CONTENTS=' '&lt;/FONT&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In normal SAS syntax there is no difference as both imply a character string containing just on space character.&lt;/P&gt;
&lt;P&gt;So what did they do different in the SAS parser to let PROC REPORT treat two quotes without anything between them as something different?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2023 16:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866394#M342133</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-26T16:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: PDF bookmark issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866717#M342299</link>
      <description>&lt;P&gt;Correct. &lt;SPAN&gt;PROC REPORT treat&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;CONTENTS=''&amp;nbsp;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;different than&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;CONTENTS=' '. But where are no differences&amp;nbsp;between "" and ''.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;By the way, setting&amp;nbsp;pdftoc=1 only influences the display when open PDF, and it will not remove level 2 and level 3 bookmark.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 12:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PDF-bookmark-issue/m-p/866717#M342299</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2023-03-28T12:51:07Z</dc:date>
    </item>
  </channel>
</rss>

