<?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 How to export excel file ending with the date of export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363643#M86142</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to export my data to excel and the name of the excel file end with _mmddyy_hourminute of the date I export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could any help me please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 22:48:06 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2017-06-01T22:48:06Z</dc:date>
    <item>
      <title>How to export excel file ending with the date of export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363643#M86142</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to export my data to excel and the name of the excel file end with _mmddyy_hourminute of the date I export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could any help me please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 22:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363643#M86142</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2017-06-01T22:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export excel file ending with the date of export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363648#M86144</link>
      <description>&lt;P&gt;You need to figure out the exact format that will work for you but the idea is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export ....  outfile = " path to file _ %sysfunc(today(), yymmdd8.)_%sysfunc(time(), time8.).xlsx"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The follow helps for testing your formats. I would &lt;U&gt;&lt;STRONG&gt;highly recommend&lt;/STRONG&gt;&lt;/U&gt; a YYMMDD format for the date then it will at least sort correctly by default which it won't otherwise.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let date = %sysfunc(today(), yymmdd8.);
%let now = %sysfunc(time(), time8.);

%put &amp;amp;date _ &amp;amp;now;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jun 2017 23:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363648#M86144</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-01T23:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to export excel file ending with the date of export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363657#M86149</link>
      <description>Thanks a lot, Reeza.&lt;BR /&gt;HC</description>
      <pubDate>Fri, 02 Jun 2017 00:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-excel-file-ending-with-the-date-of-export/m-p/363657#M86149</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2017-06-02T00:23:04Z</dc:date>
    </item>
  </channel>
</rss>

