<?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 html5 Table of Contents - formatted values for by group in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342429#M11881</link>
    <description>&lt;P&gt;Are you missing a quote right after the href=? Not sure how to get the macro variable to resolve in there as well...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;p "&amp;lt;h2&amp;gt;&amp;lt;a href=&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;#myreport&amp;amp;i'&amp;gt;&amp;amp;i&amp;lt;/a&amp;gt;&amp;lt;h2&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2017 01:39:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-20T01:39:06Z</dc:date>
    <item>
      <title>ods html5 Table of Contents - formatted values for by group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342411#M11877</link>
      <description>&lt;P&gt;Related to the question I asked (and got a great answer to!) a couple weeks ago - I am now trying to create a table of contents with html5, with fomatted values for the by group.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From an example on the SAS site and a small macro, I'm able to get pretty close to what I want - but, two problems:&lt;/P&gt;
&lt;P&gt;1) while the links appear in the table of contents, they don't take me to the graph;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;I would like to get the formatted values, instead of 1, 2, etc. - tried what I have in my (limited) bag of tricks (for example, call symput, but can only get that to work in a datastep, and my macro is inside a proc step), with no luck.&lt;/P&gt;
&lt;P&gt;- any suggestions would be appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;*not used in my code, but would like it;&lt;/P&gt;
&lt;P&gt;proc format; value dfmt&lt;BR /&gt;1 = "South"&lt;BR /&gt;2 = "North";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro mult;&lt;BR /&gt; %do i = 1 %to 2;&lt;BR /&gt;p "&amp;lt;h2&amp;gt;&amp;lt;a href=#myreport&amp;amp;i'&amp;gt;&amp;amp;i&amp;lt;/a&amp;gt;&amp;lt;h2&amp;gt;";&lt;BR /&gt; %end;&lt;BR /&gt; %mend;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data test;&lt;BR /&gt;input District PCT_PROF PCT_FR_LUNCH;&lt;BR /&gt;Tips = 'PCT PROF: '|| strip(put(PCT_PROF, percent10.))|| ' / PCT FR Lunch: '|| strip(put( PCT_FR_LUNCH, percent10.));&lt;BR /&gt;cards;&lt;BR /&gt;1 .5 .4&lt;BR /&gt;1 .7 .5&lt;BR /&gt;1 .9 .6&lt;BR /&gt;2 .2 .4&lt;BR /&gt;2 .2 .5&lt;BR /&gt;2 .2 .6&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods graphics / reset;&lt;BR /&gt;ods html5 path="." (url=none) file="test1.html" options(bitmap_mode="inline") &lt;BR /&gt;anchor="myreport";&lt;BR /&gt;proc odstext contents='';&lt;BR /&gt;p "&amp;lt;h1&amp;gt;---&amp;lt;/h1&amp;gt;";&lt;BR /&gt; %mult;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics / imagemap=on height=7in width=9in imagefmt=png;&lt;/P&gt;
&lt;P&gt;Title "PCT Prof X FR Lunch";&lt;BR /&gt;proc sgplot data=test;&lt;BR /&gt;Scatter y = PCT_PROF x = PCT_FR_LUNCH /markerattrs=(symbol=circlefilled color=blue size = &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; tip=(tips);&lt;BR /&gt;by district;&lt;BR /&gt;run;&lt;BR /&gt;ods html5 close;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2017 22:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342411#M11877</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2017-03-19T22:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 Table of Contents - formatted values for by group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342414#M11878</link>
      <description>&lt;P&gt;Use %SYSFUNC and PUTN/PUTC instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
    value dfmt 1="South" 2="North";
run;

%macro mult;
    %do i=1 %to 2;
        %put p "&amp;lt;h2&amp;gt;&amp;lt;a href=#myreport&amp;amp;i'&amp;gt;%sysfunc(putn(&amp;amp;i, dfmt))&amp;lt;/a&amp;gt;&amp;lt;h2&amp;gt;";
    %end;
%mend;

%mult;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;p "&amp;lt;h2&amp;gt;&amp;lt;a href=#myreport1'&amp;gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;South&lt;/STRONG&gt;&lt;/FONT&gt;&amp;lt;/a&amp;gt;&amp;lt;h2&amp;gt;"&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;p "&amp;lt;h2&amp;gt;&amp;lt;a href=#myreport2'&amp;gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;North&lt;/FONT&gt;&lt;/STRONG&gt;&amp;lt;/a&amp;gt;&amp;lt;h2&amp;gt;"&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 Mar 2017 23:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342414#M11878</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-19T23:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 Table of Contents - formatted values for by group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342418#M11880</link>
      <description>thanks! - that works perfect for my 2nd question - any ideas on question 1 - the links and the table of contents? (and how do "Accept" as 1/2 the solution?)</description>
      <pubDate>Sun, 19 Mar 2017 23:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342418#M11880</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2017-03-19T23:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 Table of Contents - formatted values for by group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342429#M11881</link>
      <description>&lt;P&gt;Are you missing a quote right after the href=? Not sure how to get the macro variable to resolve in there as well...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;p "&amp;lt;h2&amp;gt;&amp;lt;a href=&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;#myreport&amp;amp;i'&amp;gt;&amp;amp;i&amp;lt;/a&amp;gt;&amp;lt;h2&amp;gt;";&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 01:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342429#M11881</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-20T01:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: ods html5 Table of Contents - formatted values for by group</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342444#M11882</link>
      <description>yep - amateur mistake - now works as I hoped - double thanks!!</description>
      <pubDate>Mon, 20 Mar 2017 02:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ods-html5-Table-of-Contents-formatted-values-for-by-group/m-p/342444#M11882</guid>
      <dc:creator>Dave25</dc:creator>
      <dc:date>2017-03-20T02:28:36Z</dc:date>
    </item>
  </channel>
</rss>

