<?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: Why did the macro variable does not work for the pathway in html output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-did-the-macro-variable-does-not-work-for-the-pathway-in-html/m-p/563162#M157832</link>
    <description>&lt;P&gt;enclose in double quotes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"C:\Data\POLA\&amp;amp;Y\&amp;amp;Y&amp;amp;M\result\Happy_&amp;amp;Y&amp;amp;M..html"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as macro var reference do not resolve in single quotes&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2019 01:07:17 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-06-03T01:07:17Z</dc:date>
    <item>
      <title>Why did the macro variable does not work for the pathway in html output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-did-the-macro-variable-does-not-work-for-the-pathway-in-html/m-p/563161#M157831</link>
      <description>&lt;P&gt;Hi, I wanted to get my result in html form. I use the macro variable so that I can get the result by entering the date I want.&lt;/P&gt;&lt;P&gt;However, the html output link could not find the pathway or even&amp;nbsp;the&amp;nbsp;html name I want it to be set. Whats wrong with my code?&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; date(YYYY=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2018&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;, MM=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,Y=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2018&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,M=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%global&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; YR MTH ACCYRFY;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(BODY.....)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods html&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;file=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'C:\Data\POLA\&amp;amp;Y\&amp;amp;Y&amp;amp;M\result\Happy_&amp;amp;Y&amp;amp;M..html'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;style=normal;&lt;/P&gt;&lt;P&gt;proc print;&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;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; date;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;%&lt;STRONG&gt;&lt;I&gt;date&lt;/I&gt;&lt;/STRONG&gt;(YYYY=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2018&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,MM=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,Y=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;2018&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,M=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 00:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-did-the-macro-variable-does-not-work-for-the-pathway-in-html/m-p/563161#M157831</guid>
      <dc:creator>Kayla_Tan222</dc:creator>
      <dc:date>2019-06-03T00:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why did the macro variable does not work for the pathway in html output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-did-the-macro-variable-does-not-work-for-the-pathway-in-html/m-p/563162#M157832</link>
      <description>&lt;P&gt;enclose in double quotes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"C:\Data\POLA\&amp;amp;Y\&amp;amp;Y&amp;amp;M\result\Happy_&amp;amp;Y&amp;amp;M..html"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;as macro var reference do not resolve in single quotes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 01:07:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-did-the-macro-variable-does-not-work-for-the-pathway-in-html/m-p/563162#M157832</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-06-03T01:07:17Z</dc:date>
    </item>
  </channel>
</rss>

