<?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: In ODS PDF, can I make a single ODS PROCLABEL statement cover multiple PROC PRINTs? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919324#M26519</link>
    <description>&lt;P&gt;This looks like exactly what I'm looking for! I'll try to figure out how PROC DOCUMENT works then get my contents page nice and fancy!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 15:44:21 GMT</pubDate>
    <dc:creator>TheAntithesis13</dc:creator>
    <dc:date>2024-03-07T15:44:21Z</dc:date>
    <item>
      <title>In ODS PDF, can I make a single ODS PROCLABEL statement cover multiple PROC PRINTs?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919047#M26517</link>
      <description>&lt;P&gt;I'm trying to add bookmarks to an ods pdf output, but I'm struggling to get them to apply to some but not all of the tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I've tried:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods pdf file="blah blah blah" startpage=no;&lt;BR /&gt;title "table set 1";
ods proclabel "table set 1";
ods text="table 1 from set 1";
proc print data=table11 noobs; run;
ods text="table 2 from set 1";
proc print data=table12 noobs; run;
ods text="table 3 from set 1";
proc print data=table13 noobs; run;
&lt;BR /&gt;ods pdf startpage=now;
title "table set 2";
ods proclabel "table set 2";
ods text="table 1 from set 2";
proc print data=table21 noobs; run;
ods text="table 2 from set 2";
proc print data=table22 noobs; run;&lt;BR /&gt;ods&amp;nbsp;pdf&amp;nbsp;close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When running this, the table of contents for the pdf is:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;table set 1&lt;/P&gt;&lt;P&gt;The Print Procedure&lt;/P&gt;&lt;P&gt;The Print Procedure&lt;/P&gt;&lt;P&gt;table set 2&lt;/P&gt;&lt;P&gt;The Print Procedure&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I would like the contents to be:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;table set 1&lt;/P&gt;&lt;P&gt;table set 2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How do I either remove the "The Print Procedure" labels, or get a single label to cover multiple tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when someone clicks on an item in the contents, they are taken to the table, not the text immediately above it. If I could get the links to go to the text, that would be outstanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently using SAS Enterprise Guide 8.3.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 10:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919047#M26517</guid>
      <dc:creator>TheAntithesis13</dc:creator>
      <dc:date>2024-03-06T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: In ODS PDF, can I make a single ODS PROCLABEL statement cover multiple PROC PRINTs?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919241#M26518</link>
      <description>&lt;P&gt;You could resort to PROC DOCUMENT .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data a;
set sashelp.class(obs=6); 
xc=1;
run;

options nodate nonumber;
title;
ods document name=testAW(write);
Proc report data=a  nowd ;
Columns xc name age weight height;
define xc /order noprint;
Define name /display;
Define age/display;
Define weight/display;
Define height/ display;
Where weight &amp;lt;95;
break before xc / contents="" page;
Run;
Proc report data=a  nowd;
Columns xc name age weight height;
define xc /order noprint;
Define name /display;
Define age/display;
Define weight/display;
Define height/ display;
Where weight &amp;gt;=95;
break before xc / contents="" page;
Run;

Proc report data=a  nowd ;
Columns xc name age weight height;
define xc /order noprint;
Define name /display;
break before xc / contents="" page;
Run;
ods document close;

proc document name=testAW;
list/ levels=all; run;
quit;


proc document name=testAW2(write);
make \CLASS#1;
setlabel \Class#1  "table set 1";
copy \work.testAW\Report#1\Report#1\Report#1 to \Class#1;
copy \work.testAW\Report#2\Report#1\Report#1 to \Class#1;
run;


make \CLASS2#1;
setlabel \Class2#1  "table set 2";
copy \work.testAW\Report#3\Report#1\Report#1 to \Class2#1;
copy \work.testAW\Report#2\Report#1\Report#1 to \Class2#1;
run;


list/ levels=all; run;
quit;

title;
proc document name=work.testAW2;
ods pdf file="c:\temp\twolevels.pdf"  startpage=no ;
obtitle \CLASS#1\Report#1 'table set 1';
replay \CLASS#1;
run;

ods pdf startpage=now;
obtitle \CLASS2#1\Report#1 'table set 2';
replay \CLASS2#1;
run;
ods pdf close;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1709790683443.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94449i6B7EA4EDF74E51FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1709790683443.png" alt="Ksharp_0-1709790683443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 05:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919241#M26518</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-03-07T05:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: In ODS PDF, can I make a single ODS PROCLABEL statement cover multiple PROC PRINTs?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919324#M26519</link>
      <description>&lt;P&gt;This looks like exactly what I'm looking for! I'll try to figure out how PROC DOCUMENT works then get my contents page nice and fancy!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 15:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/In-ODS-PDF-can-I-make-a-single-ODS-PROCLABEL-statement-cover/m-p/919324#M26519</guid>
      <dc:creator>TheAntithesis13</dc:creator>
      <dc:date>2024-03-07T15:44:21Z</dc:date>
    </item>
  </channel>
</rss>

