<?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: Attached files in automail with specific dates in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739470#M28957</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;The following macro generates the date as you have desired&lt;/P&gt;
&lt;PRE&gt;%sysfunc(translate(%sysfunc(date(),yymmdd10.)_%sysfunc(trim(%sysfunc(date(),downame10.))),'_','-'));&lt;/PRE&gt;
&lt;P&gt;For today's date it will give this output :&lt;FONT color="#000000"&gt;2021_05_06_Thursday as can be seen in the log below&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         %put %sysfunc(translate(%sysfunc(date(),yymmdd10.)_%sysfunc(trim(%sysfunc(date(),downame10.))),'_','-'));
 2021_05_06_Thursday
 74         
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 19:36:09 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2021-05-06T19:36:09Z</dc:date>
    <item>
      <title>Attached files in automail with specific dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739455#M28954</link>
      <description>&lt;P&gt;Hi I am making an automatic mail everyday where the file i attached included following in the name:&amp;nbsp;2021_05_06_thursday&lt;/P&gt;
&lt;P&gt;The date changes every day so tomorrow it will be 2021_05_07_friday&lt;/P&gt;
&lt;P&gt;How can I make a macro that can generate this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739455#M28954</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-05-06T12:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Attached files in automail with specific dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739469#M28956</link>
      <description>&lt;P&gt;Please post your code that sends one mail, we can then show you how to make it dynamic.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 12:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739469#M28956</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-06T12:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Attached files in automail with specific dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739470#M28957</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;The following macro generates the date as you have desired&lt;/P&gt;
&lt;PRE&gt;%sysfunc(translate(%sysfunc(date(),yymmdd10.)_%sysfunc(trim(%sysfunc(date(),downame10.))),'_','-'));&lt;/PRE&gt;
&lt;P&gt;For today's date it will give this output :&lt;FONT color="#000000"&gt;2021_05_06_Thursday as can be seen in the log below&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         %put %sysfunc(translate(%sysfunc(date(),yymmdd10.)_%sysfunc(trim(%sysfunc(date(),downame10.))),'_','-'));
 2021_05_06_Thursday
 74         
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 19:36:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739470#M28957</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-06T19:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Attached files in automail with specific dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739720#M29003</link>
      <description>&lt;P&gt;Can I make the name of the days in the week (etc. Thursday) to another language?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 08:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739720#M29003</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-05-07T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Attached files in automail with specific dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739749#M29008</link>
      <description>&lt;P&gt;1.&lt;SPAN&gt;Can I make the name of the days in the week (etc. Thursday) to another language?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I suggest you contact SAS Tech Support.&lt;/P&gt;
&lt;P&gt;2.I think your original question is resolved, please mark it solved.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 12:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/739749#M29008</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-07T12:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Attached files in automail with specific dates</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/741052#M29107</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/353472"&gt;@mmea&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Can I make the name of the days in the week (etc. Thursday) to another language?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/nlsref/p110fby9bt2rc8n1trrj6yu4wnca.htm" target="_blank" rel="noopener"&gt;NLDATEWNw.&lt;/A&gt;&amp;nbsp;format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(date(),NLDATEWN20.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It will display the weekday according to your locale.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 10:44:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Attached-files-in-automail-with-specific-dates/m-p/741052#M29107</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-05-13T10:44:42Z</dc:date>
    </item>
  </channel>
</rss>

