<?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: %let and html path in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64401#M13996</link>
    <description>An aside:  Mike's second example doesn't look like it should work, e.g. one wouldn't expect the SAS Macro Facility to resolve the &amp;amp;path variable inside of the single quotes.  But since these lie within double quotes, the macro facility sees the single quotes as plain-old characters and not single quotes and DOES resolve the &amp;amp;path variable within.&lt;BR /&gt;
&lt;BR /&gt;
html = "href='&amp;amp;path./summary_bu.htm'";&lt;BR /&gt;
put 'HTML:  ' html;&lt;BR /&gt;
&lt;BR /&gt;
(snip snip)&lt;BR /&gt;
&lt;BR /&gt;
HTML:  href='http://domapp.com/Applications/AS/CZ/03de670ff5/$FILE/summary_bu.htm'</description>
    <pubDate>Tue, 09 Mar 2010 13:05:53 GMT</pubDate>
    <dc:creator>PatrickG</dc:creator>
    <dc:date>2010-03-09T13:05:53Z</dc:date>
    <item>
      <title>%let and html path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64399#M13994</link>
      <description>I'm trying to use a %let statement to store a html path. &lt;BR /&gt;
However, it doesn't seem to be working:&lt;BR /&gt;
&lt;BR /&gt;
%let path=%str(http://domapp.com/Applications/AS/CZ/03de670ff5/$FILE);&lt;BR /&gt;
html='href="&amp;amp;path./summary_bu.htm"';&lt;BR /&gt;
&lt;BR /&gt;
Any suggestions?&lt;BR /&gt;
Thank you.</description>
      <pubDate>Wed, 03 Mar 2010 18:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64399#M13994</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-03T18:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: %let and html path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64400#M13995</link>
      <description>hi ... macro variables only resolve when inside double quotes ...&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let path=%str(http://domapp.com/Applications/AS/CZ/03de670ff5/$FILE);&lt;BR /&gt;
data _null_;&lt;BR /&gt;
length html $80;&lt;BR /&gt;
html = 'href="&amp;amp;path./summary_bu.htm"';&lt;BR /&gt;
put 'HTML:  ' html;&lt;BR /&gt;
html = "href='&amp;amp;path./summary_bu.htm'";&lt;BR /&gt;
put 'HTML:  ' html;&lt;BR /&gt;
html = "href=""&amp;amp;path./summary_bu.htm""";&lt;BR /&gt;
put 'HTML:  ' html;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
the LOG ...&lt;BR /&gt;
HTML:  href="&amp;amp;path./summary_bu.htm"&lt;BR /&gt;
HTML:  href='http://domapp.com/Applications/AS/CZ/03de670ff5/$FILE/summary_bu.htm'&lt;BR /&gt;
HTML:  href="http://domapp.com/Applications/AS/CZ/03de670ff5/$FILE/summary_bu.htm"&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 03 Mar 2010 18:41:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64400#M13995</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2010-03-03T18:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: %let and html path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64401#M13996</link>
      <description>An aside:  Mike's second example doesn't look like it should work, e.g. one wouldn't expect the SAS Macro Facility to resolve the &amp;amp;path variable inside of the single quotes.  But since these lie within double quotes, the macro facility sees the single quotes as plain-old characters and not single quotes and DOES resolve the &amp;amp;path variable within.&lt;BR /&gt;
&lt;BR /&gt;
html = "href='&amp;amp;path./summary_bu.htm'";&lt;BR /&gt;
put 'HTML:  ' html;&lt;BR /&gt;
&lt;BR /&gt;
(snip snip)&lt;BR /&gt;
&lt;BR /&gt;
HTML:  href='http://domapp.com/Applications/AS/CZ/03de670ff5/$FILE/summary_bu.htm'</description>
      <pubDate>Tue, 09 Mar 2010 13:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/let-and-html-path/m-p/64401#M13996</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2010-03-09T13:05:53Z</dc:date>
    </item>
  </channel>
</rss>

