<?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: date formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346873#M80032</link>
    <description>&lt;P&gt;Please try to use the %substr function to pull the mon in letters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let sysmon= %substr(&amp;amp;sysdate,3,3);
%let sysyear= %sysfunc(year("&amp;amp;sysdate"d));

%put &amp;amp;sysmon &amp;amp;sysyear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Apr 2017 00:53:42 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2017-04-04T00:53:42Z</dc:date>
    <item>
      <title>date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346871#M80030</link>
      <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to crete a datset each month&amp;nbsp; as per&amp;nbsp;the following &amp;nbsp;naming convention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AB002_2017APR&lt;/P&gt;&lt;P&gt;for this wat is have used is AB002_&amp;amp;sysyear&amp;amp;sysmon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which resulets as AB002_201704, but what i need is AB002_2017APR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any format i couls use to get the desired result.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 00:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346871#M80030</guid>
      <dc:creator>SAS_INFO</dc:creator>
      <dc:date>2017-04-04T00:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346873#M80032</link>
      <description>&lt;P&gt;Please try to use the %substr function to pull the mon in letters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let sysmon= %substr(&amp;amp;sysdate,3,3);
%let sysyear= %sysfunc(year("&amp;amp;sysdate"d));

%put &amp;amp;sysmon &amp;amp;sysyear;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Apr 2017 00:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346873#M80032</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-04-04T00:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: date formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346897#M80037</link>
      <description>&lt;P&gt;Or in one shot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let rdate= %sysfunc(today(), yymon7.);&lt;/P&gt;
&lt;P&gt;%put &amp;amp;rdate;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2017Apr&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 02:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-formats/m-p/346897#M80037</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-04T02:34:05Z</dc:date>
    </item>
  </channel>
</rss>

