<?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: how to convert 12december2015 to sas date value? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305921#M65331</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x='12december2015';
y=input(x,anydtdte32.);

put y= date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 20 Oct 2016 11:17:03 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-10-20T11:17:03Z</dc:date>
    <item>
      <title>how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305893#M65319</link>
      <description>&lt;P&gt;Please can anyone guide me how to do it apart from stripging the value to ddmmmyyyy format?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 09:55:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305893#M65319</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2016-10-20T09:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305899#M65323</link>
      <description>&lt;P&gt;I don't know if there is an informat which can read the value, but you can adapt it so &lt;STRONG&gt;ANYDTDTE&lt;/STRONG&gt; can read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x='12december2015';
y=compress(x,,'d')||' '||substr(x,1,2)||', '||scan(x,-1,,'ab');

z=input(y,ANYDTDTE21.);

put z date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305899#M65323</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-10-20T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305901#M65325</link>
      <description>&lt;P&gt;Another method:&lt;/P&gt;
&lt;PRE&gt;data want;
  x='12december2016';
  thedate=input(cat(substr(x,1,2),upcase(substr(x,3,3)),substr(x,11,4)),date9.);
  format thedate date9.;
run;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305901#M65325</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-20T10:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305903#M65327</link>
      <description>&lt;P&gt;Please can you explain 'ab' in scan function?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 10:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305903#M65327</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2016-10-20T10:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305921#M65331</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x='12december2015';
y=input(x,anydtdte32.);

put y= date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 11:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305921#M65331</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-20T11:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305922#M65332</link>
      <description>&lt;P&gt;Thank you for your time and answer but only problem with this&amp;nbsp;is &amp;nbsp;you have to change length for year extraction for diffrent month&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305922#M65332</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2016-10-20T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305923#M65333</link>
      <description>&lt;P&gt;HI Ksharp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This one I did try but somehow gives missing value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:05:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305923#M65333</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2016-10-20T12:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305926#M65335</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can check here the modifiers role within scan function.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214639.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305926#M65335</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-10-20T12:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305927#M65336</link>
      <description>&lt;P&gt;Yes, sorry, didn't think of that, here is an update to catch this:&lt;/P&gt;
&lt;PRE&gt;data want;
  x='12december2016';
  thedate=input(cat(substr(x,1,2),upcase(substr(x,3,3)),substr(x,lengthn(x)-3,4)),date9.);
  format thedate date9.;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:24:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305927#M65336</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-20T12:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305938#M65343</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99341"&gt;@dpa&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;HI Ksharp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This one I did try but somehow gives missing value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please show which input string results in a missing value.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 13:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305938#M65343</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-20T13:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305946#M65347</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get the same missing result using SAS 9.2 running your posted example.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 14:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305946#M65347</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-20T14:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305947#M65348</link>
      <description>&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;252 x='12december2015';&lt;/P&gt;&lt;P&gt;253 y=input(x,anydtdte32.);&lt;/P&gt;&lt;P&gt;254&lt;/P&gt;&lt;P&gt;255 put y= date9.;&lt;/P&gt;&lt;P&gt;256 run;&lt;/P&gt;&lt;P&gt;y=.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log copy and pasted here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 14:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/305947#M65348</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2016-10-20T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert 12december2015 to sas date value?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/306136#M65421</link>
      <description>&lt;P&gt;27&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;BR /&gt;28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x='12december2015';&lt;BR /&gt;29&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y=input(x,anydtdte32.);&lt;BR /&gt;30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put y= date9.;&lt;BR /&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;BR /&gt;&lt;BR /&gt;y=12DEC2015&amp;nbsp; with SAS9.4 on WINx64&lt;BR /&gt;y=12DEC2015&amp;nbsp; with SAS9.4 on LINx64&lt;BR /&gt;y=.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with SAS9.3 on Z/OS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works in 9.3:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; X='12december2015';&lt;BR /&gt;&amp;nbsp; Y=input(prxchange('s/(\d{2}\w{3})\w*(\d{4})/$1$2/',1,X),date9.);&lt;BR /&gt;&amp;nbsp; put Y= date9.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 01:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-12december2015-to-sas-date-value/m-p/306136#M65421</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-21T01:07:12Z</dc:date>
    </item>
  </channel>
</rss>

