<?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 to modify the PDF bookmark created by RWI? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/541186#M22502</link>
    <description>Anyway, thank for youe help.</description>
    <pubDate>Thu, 07 Mar 2019 19:27:15 GMT</pubDate>
    <dc:creator>cxterm</dc:creator>
    <dc:date>2019-03-07T19:27:15Z</dc:date>
    <item>
      <title>How to modify the PDF bookmark created by RWI?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/540511#M22474</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I create a PDF report using RWI, the automatic bookmark all is 'Data NULL Table'. odf proclabel can only change the toplevel. Below is a example, How could I change the bookmark of those two table to 'Sex=F' and 'Sex=M'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods pdf file="c:\test.pdf";
ods proclabel="Sample Report";
proc sort data=sashelp.class out=class;
	by SEX;
run;
data _null_;
	set class end=EOF;
	by SEX;
	if _N_ = 1 then do;
		dcl odsout o();
		o.table_start();		
	end;	
	if first.SEX and _N_ &amp;gt; 1 then do;
		o.table_end();
		o.page();
		o.table_start();
	end;
	o.row_start();
		o.format_cell(data: Name);
		o.format_cell(data: Age);
	o.row_end();
	if last.SEX then do;
		o.table_end();
	end;
	if EOF then do;		
		o.delete();
	end;
run;
ods pdf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The bookmake in this pdf is like&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaxthonSnap20190305112214.jpg" style="width: 309px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27671i0302E912CFFF2912/image-size/large?v=v2&amp;amp;px=999" role="button" title="MaxthonSnap20190305112214.jpg" alt="MaxthonSnap20190305112214.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I really want is like this&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="MaxthonSnap20190305112444.jpg" style="width: 264px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27672i38199119F1242F88/image-size/large?v=v2&amp;amp;px=999" role="button" title="MaxthonSnap20190305112444.jpg" alt="MaxthonSnap20190305112444.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is any possible to do that? Thanks in advnce!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 17:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/540511#M22474</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2019-03-05T17:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the PDF bookmark created by RWI?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/540866#M22487</link>
      <description>&lt;P&gt;This works for your specific example&lt;/P&gt;
&lt;PRE&gt;ods pdf file="c:\test.pdf";
ods proclabel="Sample Report";
proc sort data=sashelp.class out=class;
	by SEX;
run;
data _null_;
	set class end=EOF;
	by SEX;
	if _N_ = 1 then do;
		dcl odsout o();
/*		o.table_start();		*/
	end;	
	if first.SEX /*and _N_ &amp;gt; 1*/ then do;
/*		o.table_end();*/
		o.page();
		o.table_start(Label:'Sex='||Sex);
	end;
	o.row_start();
		o.format_cell(data: Name);
		o.format_cell(data: Age);
	o.row_end();
	if last.SEX then do;
		o.table_end();
	end;
	if EOF then do;		
		o.delete();
	end;
run;
ods pdf close;&lt;/PRE&gt;
&lt;P&gt;I made the table start condtional on the first.sex a bit differently so I hope the rest is sufficient;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 18:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/540866#M22487</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-06T18:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the PDF bookmark created by RWI?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/540981#M22491</link>
      <description>&lt;P&gt;Thank you! It works as I want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;More questions:&lt;/P&gt;&lt;P&gt;1. If I do not want a table in bookmark, for example, the 'Sex = F', how could I do that? use label: '' result a blank bookmark entry. I do really want to remove that entry. like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Report&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sex = M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If I want to move the 'Sex = F' to third level entry, is it possible? how could I do that?&lt;/P&gt;&lt;P&gt;Sample Report&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;--- First level&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Sex = M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;----Second level&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sex=F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;----Third level&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 02:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/540981#M22491</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2019-03-07T02:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the PDF bookmark created by RWI?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/541167#M22501</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/199558"&gt;@cxterm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you! It works as I want.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More questions:&lt;/P&gt;
&lt;P&gt;1. If I do not want a table in bookmark, for example, the 'Sex = F', how could I do that? use label: '' result a blank bookmark entry. I do really want to remove that entry. like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample Report&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Sex = M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If I want to move the 'Sex = F' to third level entry, is it possible? how could I do that?&lt;/P&gt;
&lt;P&gt;Sample Report&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;--- First level&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Sex = M&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;----Second level&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Sex=F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;----Third level&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Beyond my skill set at this point. I seldom work with PDF or table of content entries and haven't really got much of an idea how to control TOC levels.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 18:03:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/541167#M22501</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-03-07T18:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify the PDF bookmark created by RWI?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/541186#M22502</link>
      <description>Anyway, thank for youe help.</description>
      <pubDate>Thu, 07 Mar 2019 19:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-modify-the-PDF-bookmark-created-by-RWI/m-p/541186#M22502</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2019-03-07T19:27:15Z</dc:date>
    </item>
  </channel>
</rss>

