<?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: SGPLOT a href in title statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/368978#M12786</link>
    <description>&lt;P&gt;1-Quotes in file names are not the best idea.&lt;/P&gt;
&lt;P&gt;2-Try replacing the single quote in the href with &amp;amp;apos;&lt;/P&gt;
&lt;P&gt;3-Try using double quotes only:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; title2&amp;nbsp; "&amp;lt;a href=""Data_&amp;amp;&amp;amp;analyte&amp;amp;i...xlsx""; title='Data Link'&amp;nbsp;&amp;gt;Open Data Set&amp;lt;/a&amp;gt;";&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 23:29:16 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2017-06-20T23:29:16Z</dc:date>
    <item>
      <title>SGPLOT a href in title statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/368968#M12785</link>
      <description>&lt;P&gt;I have a program that outputs multiple plots using SGPLOT and multiple XLSX output. I'm using an "&amp;lt;a href" in a title statement to link to the XLSX file. Within the title statement I'm resolving a macro variable. All works fine, until the macro variable as a " ' " (single quote) in the name and then the link breaks. My code looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=plotdata;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;title1 h=5 "Blind Sample Determination:" ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;title2 underlin=1 italic color=blue "&amp;lt;a href='Data_&amp;amp;&amp;amp;analyte&amp;amp;i...xlsx'; title='Data Link'&amp;nbsp;&amp;gt;Open Data Set&amp;lt;/a&amp;gt;"; /*Link to XLSX file */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the variable analyte="Triclosan" then the HTML a href output reads correctly:&lt;/P&gt;&lt;P&gt;&amp;lt;a href='Data_4433_TRICLOSAN.xlsx'; title='Data Link' &amp;gt;Open Data Set&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the variable analyte="2,2',4,4'-TETRABROMODIPHENYLETHER" then the HTML output breaks at the single&amp;nbsp;quote in the name:&lt;/P&gt;&lt;P&gt;&amp;lt;a href='Data_4433_2,2',4,4'-TETRABROMODIPHENYLETHER.xlsx'; title='Data Link'&amp;gt;Open Data Set&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the double quotes to resolve the analyte&amp;nbsp;macro variable and can't seem to figure out how to get around this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions would be very much appreciated,&lt;BR /&gt;Amy&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 22:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/368968#M12785</guid>
      <dc:creator>asludtke</dc:creator>
      <dc:date>2017-06-20T22:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT a href in title statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/368978#M12786</link>
      <description>&lt;P&gt;1-Quotes in file names are not the best idea.&lt;/P&gt;
&lt;P&gt;2-Try replacing the single quote in the href with &amp;amp;apos;&lt;/P&gt;
&lt;P&gt;3-Try using double quotes only:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt; title2&amp;nbsp; "&amp;lt;a href=""Data_&amp;amp;&amp;amp;analyte&amp;amp;i...xlsx""; title='Data Link'&amp;nbsp;&amp;gt;Open Data Set&amp;lt;/a&amp;gt;";&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 23:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/368978#M12786</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-20T23:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT a href in title statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/369050#M12790</link>
      <description>&lt;P&gt;How about using the the LINK=option. then you have two different strings and it is easier to manage. See sample below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title link="https://communities.sas.com" "Here we go";

proc sgplot data=sashelp.cars;
  vbar type;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Jun 2017 08:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/369050#M12790</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-06-21T08:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT a href in title statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/369128#M12791</link>
      <description>&lt;P&gt;Thanks, option 3 (double-double quotes) worked!&lt;/P&gt;&lt;P&gt;Amy&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 12:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-a-href-in-title-statement/m-p/369128#M12791</guid>
      <dc:creator>asludtke</dc:creator>
      <dc:date>2017-06-21T12:55:26Z</dc:date>
    </item>
  </channel>
</rss>

