<?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: ods pdf sgplot table of contents in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596424#M18961</link>
    <description>&lt;P&gt;The DESCRIPTION option on the SGPLOT statement should give you the ability to customize the TOC entry.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 03:38:27 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2019-10-15T03:38:27Z</dc:date>
    <item>
      <title>ods pdf sgplot table of contents</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596420#M18960</link>
      <description>&lt;P&gt;I'm trying to create a table of contents, wiith amacro variable in one of the "nodes"&amp;nbsp; - have tried a LOTS of different things, but no success. Below is an example with stripped down code - i would like to have the "District" variable in the Table of Contents, but can get nothing but:&lt;/P&gt;
&lt;P&gt;The SGPLOT Procedure...1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SGPLOT-.........................1&lt;/P&gt;
&lt;P&gt;The SGPLOT Procedur......2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SGPLOT...........................2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any sugggestions would be greatly appreaciated!&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data a;
input id district $ value;
datalines;
1 A 1
2 B 1
3 C 1
;
ods pdf file = "C:\a\test.pdf" contents;
%macro x1;
%do k = 1 %to 3;
  data plot; set A (where = (id = &amp;amp;k));
    if _n_ = 1 then call symput("DST", strip(District));
	contents=&amp;amp;dst
 run;
title1 "&amp;amp;DST  -- Grade = &amp;amp;i";
proc sgplot;
scatter x=district y= value;
run;
%end;
%mend;

%x1;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 03:15:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596420#M18960</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2019-10-15T03:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf sgplot table of contents</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596424#M18961</link>
      <description>&lt;P&gt;The DESCRIPTION option on the SGPLOT statement should give you the ability to customize the TOC entry.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 03:38:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596424#M18961</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2019-10-15T03:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf sgplot table of contents</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596425#M18962</link>
      <description>&lt;P&gt;Thank you for the quick reply&amp;nbsp; - that was one of the many things i had tried, but couldn't get it to work - when i try adding it in (in the code, below) i get the same TOC (the "TEST" doesn't show up, just the "The SGPLOT Procedure" and "SGPLOT")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
input id district $ value;
datalines;
1 A 1
2 B 1
3 C 1
;
ods pdf file = "C:\a\test.pdf" contents;
%macro x1;
%do k = 1 %to 3;
  data plot; set A (where = (id = &amp;amp;k));
    if _n_ = 1 then call symput("DST", strip(District));
 run;
title1 "&amp;amp;DST ";
proc sgplot DESCRIPTION= "TEST" ;
scatter x=district y= value;
run;
%end;
%mend;

%x1;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 04:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/596425#M18962</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2019-10-15T04:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf sgplot table of contents</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/875106#M23782</link>
      <description>&lt;P&gt;Have you tried resetting your SAS Studio or SAS EG following&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-reset-a-session-in-SAS-EG-like-in-SAS-Studio/td-p/730035#:~:text=PROC%20Star-,Re%3A%20How%20to%20reset%20a%20session%20in,EG%20like%20in%20SAS%20Studio%20%3F&amp;amp;text=In%20EG%20right%2Dclick%20on,(and%20session)%20is%20created." target="_self"&gt;these instructions&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may also have an&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options nolabel;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;setting written somewhere in your code which may be causing an issue.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 22:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-pdf-sgplot-table-of-contents/m-p/875106#M23782</guid>
      <dc:creator>Springyboy</dc:creator>
      <dc:date>2023-05-10T22:43:25Z</dc:date>
    </item>
  </channel>
</rss>

