<?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: ODS Excel Filename with previous month date in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644030#M24016</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let file1=/saswork/Corporate/Marketer_Services_Reporting/Data/_Scheduled Reports/CLASS Monthly/CLASS Completions-%sysfunc(today(),mmyyd7.).xlsx;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Although I think the formatting of&amp;nbsp;&lt;SPAN&gt;MM-YYYY is a very poor choice because if you try to sort these files, they don't wind up in chronological order, they wind up with all the January files first regardless of year, and all the February files ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Whereas yyyy-mm would always sort in chronological order.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Apr 2020 17:21:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-04-29T17:21:11Z</dc:date>
    <item>
      <title>ODS Excel Filename with previous month date</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644023#M24014</link>
      <description>&lt;P&gt;I have a SAS program that creates an Excel file that includes the current date as part of the file name. The data in the file is from the prior month.&amp;nbsp; How do I change the date to show the prior month in a MM-YYYY format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my current code that names the Excel file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let file1=/saswork/Corporate/Marketer_Services_Reporting/Data/_Scheduled Reports/CLASS Monthly/CLASS Completions-%QSYSFUNC(DATE(),worddate18.).xlsx;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods excel file="&amp;amp;file1";&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 16:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644023#M24014</guid>
      <dc:creator>SWard</dc:creator>
      <dc:date>2020-04-29T16:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Filename with previous month date</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644029#M24015</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%SYSFUNC(intnx(month, %sysfunc(DATE()), -1, e), mmyyd6.)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Apr 2020 17:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644029#M24015</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-04-29T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel Filename with previous month date</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644030#M24016</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let file1=/saswork/Corporate/Marketer_Services_Reporting/Data/_Scheduled Reports/CLASS Monthly/CLASS Completions-%sysfunc(today(),mmyyd7.).xlsx;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Although I think the formatting of&amp;nbsp;&lt;SPAN&gt;MM-YYYY is a very poor choice because if you try to sort these files, they don't wind up in chronological order, they wind up with all the January files first regardless of year, and all the February files ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Whereas yyyy-mm would always sort in chronological order.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 17:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Excel-Filename-with-previous-month-date/m-p/644030#M24016</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-04-29T17:21:11Z</dc:date>
    </item>
  </channel>
</rss>

