<?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: Macro variable in file path in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/420830#M12919</link>
    <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;got this correct. I'd probably add in a %trim to ensure no trailing blanks given that its a file name that's being created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I'd use:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ODS HTML FILE ="C:/User/%trim(&amp;amp;macrovariable).html";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;nice solution&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 15:22:54 GMT</pubDate>
    <dc:creator>SteveED</dc:creator>
    <dc:date>2017-12-13T15:22:54Z</dc:date>
    <item>
      <title>Macro variable in file path</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/148079#M2475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to pass a macro variable in a file path. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS HTML FILE ="C:/User/" || &amp;amp;macrovariable || ".html";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything is same except filename. I have tried concatenating the remaining portion of the path with macro varible. But it seems not be working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/148079#M2475</guid>
      <dc:creator>Ujjawal</dc:creator>
      <dc:date>2014-08-04T18:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable in file path</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/148080#M2476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;ODS HTML FILE ="C:/User/&amp;amp;macrovariable..html"; /* the first . is to tell the macro processor that you want to append some text and is needed to add the . into the name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/148080#M2476</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-08-04T18:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro variable in file path</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/420830#M12919</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;got this correct. I'd probably add in a %trim to ensure no trailing blanks given that its a file name that's being created.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I'd use:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ODS HTML FILE ="C:/User/%trim(&amp;amp;macrovariable).html";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;nice solution&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 15:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Macro-variable-in-file-path/m-p/420830#M12919</guid>
      <dc:creator>SteveED</dc:creator>
      <dc:date>2017-12-13T15:22:54Z</dc:date>
    </item>
  </channel>
</rss>

