<?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 date impute in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/325987#M72548</link>
    <description>&lt;P&gt;I want impute the below date to DATE variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;30 – if day missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;June- if month missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;DATE&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1963&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1955-Apr&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1987&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1990-Aug&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Thu, 19 Jan 2017 14:50:37 GMT</pubDate>
    <dc:creator>RajasekharReddy</dc:creator>
    <dc:date>2017-01-19T14:50:37Z</dc:date>
    <item>
      <title>date impute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/325987#M72548</link>
      <description>&lt;P&gt;I want impute the below date to DATE variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;30 – if day missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;June- if month missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;DATE&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1963&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1955-Apr&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1987&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="89"&gt;
&lt;P&gt;1990-Aug&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:50:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/325987#M72548</guid>
      <dc:creator>RajasekharReddy</dc:creator>
      <dc:date>2017-01-19T14:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: date impute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/325993#M72551</link>
      <description>&lt;P&gt;Dunno what kind of date format your using there is you have YYYY-MON? &amp;nbsp;Basically split it to three parts, make your updates, then put it back together:&lt;/P&gt;
&lt;PRE&gt;data want;
  set have;
  yr=scan(thedate,1,"-");
  mon=scan(thedate,2,"-");
  day=scan(thedate,3,"-");
  if mon="" then mon="Jun";
  if day="" then day="30";
  want_date=input(cats(day,mon,yr),date9.);
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/325993#M72551</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-01-19T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: date impute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/326008#M72560</link>
      <description>&lt;P&gt;Recommend using 28 for day when month = 'Feb' &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/date-impute/m-p/326008#M72560</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-19T15:25:14Z</dc:date>
    </item>
  </channel>
</rss>

