<?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 Changing Bookmark labels when using ODS PDF in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7472#M2365</link>
    <description>How do I change pdf bookmark labels in an ODS pdf statement to equal the title for each Proc Report when I have multiple Proc Report statements within the same ods statement?</description>
    <pubDate>Fri, 14 Mar 2008 13:45:28 GMT</pubDate>
    <dc:creator>Kandi</dc:creator>
    <dc:date>2008-03-14T13:45:28Z</dc:date>
    <item>
      <title>Changing Bookmark labels when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7472#M2365</link>
      <description>How do I change pdf bookmark labels in an ODS pdf statement to equal the title for each Proc Report when I have multiple Proc Report statements within the same ods statement?</description>
      <pubDate>Fri, 14 Mar 2008 13:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7472#M2365</guid>
      <dc:creator>Kandi</dc:creator>
      <dc:date>2008-03-14T13:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bookmark labels when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7473#M2366</link>
      <description>Hi:&lt;BR /&gt;
  Two ways to touch bookmarks are:&lt;BR /&gt;
1) ODS PROCLABEL statement BEFORE each PROC REPORT or&lt;BR /&gt;
2) CONTENTS= option on each proc report statement.&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='lovelucy.pdf';&lt;BR /&gt;
    &lt;BR /&gt;
ods proclabel 'Lucy';&lt;BR /&gt;
Proc report data=sashelp.class nowd&lt;BR /&gt;
     contents='Love Lucy';&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
ods proclabel 'Ethel';&lt;BR /&gt;
Proc report data=sashelp.class nowd&lt;BR /&gt;
    contents='Ethel Rocks';&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 14 Mar 2008 18:05:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7473#M2366</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-03-14T18:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bookmark labels when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7474#M2367</link>
      <description>When I run this code in 9.1.3 I get the following bookmarks:&lt;BR /&gt;
&lt;BR /&gt;
Lucy&lt;BR /&gt;
+---Love Lucy&lt;BR /&gt;
Ethel&lt;BR /&gt;
+---Ethel Rocks&lt;BR /&gt;
&lt;BR /&gt;
Great!&lt;BR /&gt;
But in 9.2 I get bonus bookmarks:&lt;BR /&gt;
&lt;BR /&gt;
Lucy&lt;BR /&gt;
+---Love Lucy&lt;BR /&gt;
   +---Table1&lt;BR /&gt;
Ethel&lt;BR /&gt;
+---Ethel Rocks&lt;BR /&gt;
   +---Table1&lt;BR /&gt;
&lt;BR /&gt;
Is there any option that will get rid of the Table1 bookmarks?&lt;BR /&gt;
Or do I have to start using ODS Document to fix this compatibility issue ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Lex Jansen</description>
      <pubDate>Sat, 23 May 2009 03:37:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7474#M2367</guid>
      <dc:creator>Lex_SAS</dc:creator>
      <dc:date>2009-05-23T03:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bookmark labels when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7475#M2368</link>
      <description>Hi:&lt;BR /&gt;
  Ah, you're right. It's a feature that the extra level got introduced, as described here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/31/278.html" target="_blank"&gt;http://support.sas.com/kb/31/278.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  To cope with it, there's a new capability -- contents= on the BREAK before xxx statement -- that will allow you to either name it or disappear it. You have to make a "fake variable" to break on and use the PAGE option on the break statement, but it will do what you want. (Note that you will change the PDF bookmarks, but NOT the Results Windows nodes.)&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
data class;&lt;BR /&gt;
  set sashelp.class;&lt;BR /&gt;
  fakevar = 1;&lt;BR /&gt;
run;     &lt;BR /&gt;
           &lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods pdf file='lovelucy.pdf';&lt;BR /&gt;
                                &lt;BR /&gt;
ods proclabel 'Lucy';&lt;BR /&gt;
Proc report data=class nowd&lt;BR /&gt;
     contents='Love Lucy';&lt;BR /&gt;
  column fakevar name age height sex;&lt;BR /&gt;
  define fakevar / order noprint;&lt;BR /&gt;
  break before fakevar / contents='Ricky' page;&lt;BR /&gt;
run;&lt;BR /&gt;
                       &lt;BR /&gt;
ods proclabel 'Ethel';&lt;BR /&gt;
Proc report data=class nowd&lt;BR /&gt;
    contents='Ethel Rocks';&lt;BR /&gt;
  column fakevar name age height sex;&lt;BR /&gt;
  define fakevar / order noprint;&lt;BR /&gt;
  break before fakevar / contents='' page;&lt;BR /&gt;
run;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sun, 24 May 2009 18:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7475#M2368</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-24T18:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bookmark labels when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7476#M2369</link>
      <description>Thanks, Cynthia!&lt;BR /&gt;
&lt;BR /&gt;
It works, but it does get a little hard to maintain code that has to be compatible with older versions.&lt;BR /&gt;
&lt;BR /&gt;
Since the hyperlinks in my PROC REPORTS use absolute column references (like _c3_), I now have to update them (in this example to _c4_), since I added a fake variable.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas to prevent this, except adding a lot of code like this: %IF &amp;amp;sysvar=9.2 %THEN ...&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Lex Jansen

Message was edited by: LexJ</description>
      <pubDate>Sun, 24 May 2009 22:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7476#M2369</guid>
      <dc:creator>Lex_SAS</dc:creator>
      <dc:date>2009-05-24T22:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Bookmark labels when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7477#M2370</link>
      <description>Hi, Lex:&lt;BR /&gt;
  I feel your pain. It's not the best solution if you have to maintain code for multiple versions -- especially with ACROSS variables in the mix. My tendency would be to modularize the code for each version -- create fakevar &amp;amp; shift the absolute columns for 9.2 and use the "old way" for 9.1.3 -- but maintain them as 2 separate programs.&lt;BR /&gt;
&lt;BR /&gt;
  Sorry, I don't have a better idea.&lt;BR /&gt;
   &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 25 May 2009 00:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Changing-Bookmark-labels-when-using-ODS-PDF/m-p/7477#M2370</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-05-25T00:50:19Z</dc:date>
    </item>
  </channel>
</rss>

