<?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: Repace Empty Dates with hardcore date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676445#M203965</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if missing(date2) then date2='31DEC9999'd;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Aug 2020 11:03:52 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-08-13T11:03:52Z</dc:date>
    <item>
      <title>Repace Empty Dates with hardcore date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676442#M203964</link>
      <description>&lt;P&gt;i have below table with dates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3/1/2017&lt;/TD&gt;&lt;TD&gt;3/1/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;3/2/2017&lt;/TD&gt;&lt;TD&gt;3/2/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3/3/2017&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3/4/2017&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;3/5/2017&lt;/TD&gt;&lt;TD&gt;3/5/2017&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;3/6/2017&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to replace the empty dates with hardcore constant date as '31DEC9999'd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone will help me out there&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 10:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676442#M203964</guid>
      <dc:creator>Son_Of_Krypton</dc:creator>
      <dc:date>2020-08-13T10:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Repace Empty Dates with hardcore date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676445#M203965</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if missing(date2) then date2='31DEC9999'd;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 11:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676445#M203965</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-08-13T11:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Repace Empty Dates with hardcore date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676448#M203968</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think a good &lt;A href="https://www.mastersofhardcore.com/events/masters-of-hardcore-2020/" target="_blank" rel="noopener"&gt;hardcore date&lt;/A&gt; could be 27th of March 2021 &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;if missing(date2) then date2='27MAR2021'd;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;But it could be difficult to justify in clinical trials.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If it's hardcode that you mean then please refer to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;'s answer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 09:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676448#M203968</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2020-10-08T09:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Repace Empty Dates with hardcore date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676452#M203971</link>
      <description>&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1vjttz6nuankzn1gh4z3wgcu0bf.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;COALESCE&lt;/A&gt; function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input date yymmdd10.;
format date yymmdd10.;
datalines;
2020-08-12
.
;

data want;
set have;
date = coalesce(date,'31dec9999'd);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Aug 2020 11:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676452#M203971</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-08-13T11:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Repace Empty Dates with hardcore date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676513#M204005</link>
      <description>&lt;P&gt;If the purpose of showing a date of 31DEC9999 is to indicate "missing date" then leave it alone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the complete reason for using a valid date instead of leaving them missing?&lt;/P&gt;
&lt;P&gt;You can't model anything with that value, graphs are problematic and statistics like just counting the number of valid dates in your data impossible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 15:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/676513#M204005</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-13T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Repace Empty Dates with hardcore date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/689891#M209770</link>
      <description>&lt;P&gt;Note that if this is to create an artificial "end" date that lies in a far future, SAS functions do not need that if you need to calculate a "real end":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
end_date = .;
real_end_date = min(today(),end_date);
format end_date real_end_date yymmdd10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2020 07:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repace-Empty-Dates-with-hardcore-date/m-p/689891#M209770</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-08T07:59:33Z</dc:date>
    </item>
  </channel>
</rss>

