<?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 How to covert MMM YYYY to iso format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463743#M118196</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please advise how to convert mmm yyyy into iso format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data have;
  input cdate $10.;
  datalines;
Mar 2017
;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I badly need the date in iso format: 2017-03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2018 09:55:09 GMT</pubDate>
    <dc:creator>DmytroYermak</dc:creator>
    <dc:date>2018-05-21T09:55:09Z</dc:date>
    <item>
      <title>How to covert MMM YYYY to iso format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463743#M118196</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please advise how to convert mmm yyyy into iso format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data have;
  input cdate $10.;
  datalines;
Mar 2017
;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I badly need the date in iso format: 2017-03&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 09:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463743#M118196</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-05-21T09:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to covert MMM YYYY to iso format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463757#M118198</link>
      <description>&lt;P&gt;If you want to keep your date as a character value than this would do the trick:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;length sdate $8;&lt;BR /&gt;sdate=put(input(cdate, monyy8.), yymmd8.);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The SAS ISO formats always display the date. In your specific case it looks like you can get away with a more common date format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general I would recommend to read up on how SAS deals with dates as they are usually stored as numeric values and formatted in a desired form when presenting the value in a report or such. A good start would be the &lt;A href="http://documentation.sas.com/?docsetId=lrcon&amp;amp;docsetTarget=p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;online docs&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;-- Jan&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 11:40:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463757#M118198</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2018-05-21T11:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to covert MMM YYYY to iso format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463767#M118199</link>
      <description>&lt;P&gt;I suugest to use the ANYDTDTE informat, this will give you a SAS date value, that can be used for many things, see example below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input 
    @1 cdate $10.
    @1 sasDate anydtdte.
  ;
  
  sasDate2 = sasDate;
  
  format sasDate yymmd7. sasDate2 date9.;
  datalines;
Mar 2017
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 May 2018 12:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463767#M118199</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-05-21T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to covert MMM YYYY to iso format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463770#M118201</link>
      <description>Thank you, Jan! I did not find the monyy8. format, now I will be aware.</description>
      <pubDate>Mon, 21 May 2018 13:05:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463770#M118201</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-05-21T13:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to covert MMM YYYY to iso format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463772#M118203</link>
      <description>Thank you, Bruno. The same with anydtdte. format ) - I never heard. This forum is really useful.</description>
      <pubDate>Mon, 21 May 2018 13:08:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-covert-MMM-YYYY-to-iso-format/m-p/463772#M118203</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-05-21T13:08:32Z</dc:date>
    </item>
  </channel>
</rss>

