<?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: Problem with  missing date value in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-missing-date-value/m-p/212186#M52409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are replacing missing values in date2 with the result of expression 02/28/2015 = 0.0000354&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;you must give date constants the proper format :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data _NULL_; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; call symputx('enddt', put(intnx('month',date(),-1,'e'), &lt;SPAN style="color: #800000;"&gt;date9.&lt;/SPAN&gt;)) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put &amp;amp;enddt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data have2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if date2 = . then date2 = &lt;SPAN style="color: #800000;"&gt;"&amp;amp;enddt."d&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Mar 2015 17:12:58 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2015-03-28T17:12:58Z</dc:date>
    <item>
      <title>Problem with  missing date value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-missing-date-value/m-p/212185#M52408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following code I am using to fill the date if missing with end of Previous month date.&amp;nbsp; But some how it give me date = 01/01/1960&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input ID&amp;nbsp; date1&amp;nbsp; : mmddyy10.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date2 : mmddyy10.&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;format&amp;nbsp;&amp;nbsp;&amp;nbsp; date1 date2&amp;nbsp; mmddyy10.&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 12/31/2014&amp;nbsp; 1/5/2015&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/5/2015&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/15/2015&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 2/16/2015&amp;nbsp;&amp;nbsp;&amp;nbsp; .&amp;nbsp; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _NULL_;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; call symputx('enddt', put(intnx('month',date(),-1,'e'), mmddyy10.)) ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if date2 = . then date2 = &amp;amp;enddt.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 16:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-missing-date-value/m-p/212185#M52408</guid>
      <dc:creator>pp2014</dc:creator>
      <dc:date>2015-03-28T16:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with  missing date value</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-with-missing-date-value/m-p/212186#M52409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are replacing missing values in date2 with the result of expression 02/28/2015 = 0.0000354&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;you must give date constants the proper format :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data _NULL_; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; call symputx('enddt', put(intnx('month',date(),-1,'e'), &lt;SPAN style="color: #800000;"&gt;date9.&lt;/SPAN&gt;)) ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put &amp;amp;enddt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data have2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; set have;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if date2 = . then date2 = &lt;SPAN style="color: #800000;"&gt;"&amp;amp;enddt."d&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Mar 2015 17:12:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-with-missing-date-value/m-p/212186#M52409</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-03-28T17:12:58Z</dc:date>
    </item>
  </channel>
</rss>

