<?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 modify automatically my date in my ods excel path in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/modify-automatically-my-date-in-my-ods-excel-path/m-p/711239#M219062</link>
    <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I have an issue,&lt;/P&gt;&lt;P&gt;I would like to modify automatically my date in my ods excel path, but it doesn't work.&lt;/P&gt;&lt;P&gt;here my code :&lt;/P&gt;&lt;PRE&gt;%let date=20210101;

ods excel file='C:\Users\JOLYFI\Desktop\4M - Defaut DOU\DOUWEB_FACTO_&amp;amp;Date..xlsx'
    options(sheet_name='facto');

proc report data=DOUWEB_FACTO_&amp;amp;Date.;
run;

ods excel close;&lt;/PRE&gt;&lt;P&gt;when i run it, I have this title on my excel : DOUWEB_FACTO_&amp;amp;Date..xlsx instead of DOUWEB_FACTO_20210101.xlsx&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Someone know how to do ?&lt;BR /&gt;&lt;BR /&gt;thank you&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jan 2021 18:03:42 GMT</pubDate>
    <dc:creator>unifly</dc:creator>
    <dc:date>2021-01-13T18:03:42Z</dc:date>
    <item>
      <title>modify automatically my date in my ods excel path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/modify-automatically-my-date-in-my-ods-excel-path/m-p/711239#M219062</link>
      <description>&lt;P&gt;Hi everyone,&lt;BR /&gt;I have an issue,&lt;/P&gt;&lt;P&gt;I would like to modify automatically my date in my ods excel path, but it doesn't work.&lt;/P&gt;&lt;P&gt;here my code :&lt;/P&gt;&lt;PRE&gt;%let date=20210101;

ods excel file='C:\Users\JOLYFI\Desktop\4M - Defaut DOU\DOUWEB_FACTO_&amp;amp;Date..xlsx'
    options(sheet_name='facto');

proc report data=DOUWEB_FACTO_&amp;amp;Date.;
run;

ods excel close;&lt;/PRE&gt;&lt;P&gt;when i run it, I have this title on my excel : DOUWEB_FACTO_&amp;amp;Date..xlsx instead of DOUWEB_FACTO_20210101.xlsx&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Someone know how to do ?&lt;BR /&gt;&lt;BR /&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 18:03:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/modify-automatically-my-date-in-my-ods-excel-path/m-p/711239#M219062</guid>
      <dc:creator>unifly</dc:creator>
      <dc:date>2021-01-13T18:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: modify automatically my date in my ods excel path</title>
      <link>https://communities.sas.com/t5/SAS-Programming/modify-automatically-my-date-in-my-ods-excel-path/m-p/711246#M219066</link>
      <description>&lt;P&gt;Try changing the single quotes around the path to double quotes. That way the macro variable &amp;amp;Date can resolve--it won't resolve inside single quotes.&lt;/P&gt;
&lt;PRE&gt;ods excel file=&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;C:\Users\JOLYFI\Desktop\4M - Defaut DOU\DOUWEB_FACTO_&amp;amp;Date..xlsx&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2021 18:22:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/modify-automatically-my-date-in-my-ods-excel-path/m-p/711246#M219066</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2021-01-13T18:22:34Z</dc:date>
    </item>
  </channel>
</rss>

