<?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: sas DATE creation in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347003#M80081</link>
    <description>&lt;P&gt;"This doesn't work" isn't really helpful. &amp;nbsp;Can you post the log from your attempt that didn't work?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2017 11:30:42 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-04-04T11:30:42Z</dc:date>
    <item>
      <title>sas DATE creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/346974#M80064</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an output column with just the text 'January' or 'February' etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create another column adjacent that will be a date in the following format, '01JAN2017'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue is that I always want the date to be the first of the month but for the current year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;January = '01Jan2017'&lt;/P&gt;&lt;P&gt;February = '01Feb2017'&lt;/P&gt;&lt;P&gt;etc etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Cam&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 10:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/346974#M80064</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-04-04T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: sas DATE creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/346979#M80067</link>
      <description>&lt;P&gt;One idea:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;new_column = '01' || substr(month, 1, 3) || put(today(), year4.);&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 10:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/346979#M80067</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-04T10:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: sas DATE creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347001#M80080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't work. I just get empty column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 11:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347001#M80080</guid>
      <dc:creator>CamRutherford</dc:creator>
      <dc:date>2017-04-04T11:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: sas DATE creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347003#M80081</link>
      <description>&lt;P&gt;"This doesn't work" isn't really helpful. &amp;nbsp;Can you post the log from your attempt that didn't work?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 11:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347003#M80081</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-04-04T11:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: sas DATE creation</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347023#M80092</link>
      <description>&lt;P&gt;It does work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data new;&lt;BR /&gt;input month $;&lt;BR /&gt;cards;&lt;BR /&gt;January&lt;BR /&gt;February&lt;BR /&gt;March&lt;BR /&gt;April&lt;BR /&gt;May&lt;BR /&gt;June&lt;BR /&gt;July&lt;BR /&gt;August&lt;BR /&gt;September&lt;BR /&gt;October&lt;BR /&gt;November&lt;BR /&gt;December&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;data new1;&lt;BR /&gt;set new;&lt;BR /&gt;new_col='01';&lt;BR /&gt;new_col1=upcase(substr(month,1,3));&lt;BR /&gt;new_col2=put(today(),year4.);&lt;BR /&gt;fin_col=new_col || strip(new_col1) || trim(new_col2);&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2017 12:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-DATE-creation/m-p/347023#M80092</guid>
      <dc:creator>kaverisonu1</dc:creator>
      <dc:date>2017-04-04T12:54:30Z</dc:date>
    </item>
  </channel>
</rss>

