<?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 ODS Excel Filename in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558373#M22752</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Quick preface:&amp;nbsp; I am very new to using macro language, so I could be missing something relatively easy here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report built through enterprise guide that I'm exporting using an ODS Excel line, this all works fine.&lt;/P&gt;&lt;P&gt;However, I'm trying to adjust the filename portion to include today's date.&amp;nbsp; So I created a variable to pull the system date.&lt;/P&gt;&lt;P&gt;Now, I had this working momentarily, but when i went to adjust the field to the live location, i must have changed something and can no longer get it to work.&amp;nbsp; I feel like I'm overlooking something simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET _CLIENTTASKFILTER = Location = 'HCC';
%let Date = %sysfunc(today(), yymmddn8.);
%put &amp;amp;todaysDate;

TITLE"Leads Performance";
FOOTNOTE;

/* -------------------------------------------------------------------
Run the tabulate procedure
------------------------------------------------------------------- */

ods excel file='\Reporting\Leads&amp;amp;Date..xlsx' style=htmlblue;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the file is just exporting exactly as printed and not referencing the &amp;amp;date but i can see the date working properly in the log.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26 %LET _CLIENTTASKFILTER = Hub_Location = 'HUBHCC';
27 %let Date = %sysfunc(today(), yymmddn8.);
28 %put &amp;amp;todaysDate;
20190513
29 
30 TITLE"Leads Performance";

.

.

150 ODS _ALL_ CLOSE;
NOTE: Writing EXCEL file: \Reporting\Leads&amp;amp;date..xlsx

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 May 2019 16:44:57 GMT</pubDate>
    <dc:creator>Erict</dc:creator>
    <dc:date>2019-05-13T16:44:57Z</dc:date>
    <item>
      <title>ODS Excel Filename</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558373#M22752</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Quick preface:&amp;nbsp; I am very new to using macro language, so I could be missing something relatively easy here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report built through enterprise guide that I'm exporting using an ODS Excel line, this all works fine.&lt;/P&gt;&lt;P&gt;However, I'm trying to adjust the filename portion to include today's date.&amp;nbsp; So I created a variable to pull the system date.&lt;/P&gt;&lt;P&gt;Now, I had this working momentarily, but when i went to adjust the field to the live location, i must have changed something and can no longer get it to work.&amp;nbsp; I feel like I'm overlooking something simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET _CLIENTTASKFILTER = Location = 'HCC';
%let Date = %sysfunc(today(), yymmddn8.);
%put &amp;amp;todaysDate;

TITLE"Leads Performance";
FOOTNOTE;

/* -------------------------------------------------------------------
Run the tabulate procedure
------------------------------------------------------------------- */

ods excel file='\Reporting\Leads&amp;amp;Date..xlsx' style=htmlblue;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the file is just exporting exactly as printed and not referencing the &amp;amp;date but i can see the date working properly in the log.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26 %LET _CLIENTTASKFILTER = Hub_Location = 'HUBHCC';
27 %let Date = %sysfunc(today(), yymmddn8.);
28 %put &amp;amp;todaysDate;
20190513
29 
30 TITLE"Leads Performance";

.

.

150 ODS _ALL_ CLOSE;
NOTE: Writing EXCEL file: \Reporting\Leads&amp;amp;date..xlsx

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 May 2019 16:44:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558373#M22752</guid>
      <dc:creator>Erict</dc:creator>
      <dc:date>2019-05-13T16:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Filename</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558384#M22753</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/186801"&gt;@Erict&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The single quotes around the path prevent the resolution of the macro variable reference (&lt;FONT face="courier new,courier"&gt;&amp;amp;Date.&lt;/FONT&gt;). Replacing them with &lt;EM&gt;double quotes&lt;/EM&gt; should solve the problem.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 17:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558384#M22753</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-05-13T17:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Filename</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558389#M22754</link>
      <description>&lt;P&gt;Awesome, I knew it would be something simple that I was overlooking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your time !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Eric&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 17:30:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename/m-p/558389#M22754</guid>
      <dc:creator>Erict</dc:creator>
      <dc:date>2019-05-13T17:30:48Z</dc:date>
    </item>
  </channel>
</rss>

