<?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 advanced expression, want date or blank in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/advanced-expression-want-date-or-blank/m-p/526856#M5165</link>
    <description>&lt;P&gt;I am trying to return an actual date or if date is missing I want a blank or even a 0.&amp;nbsp; It's returning the actual date or 1/1/1960&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my expression:&amp;nbsp;&amp;nbsp;ifn(t1.GNN_MSAI_ANCHOR_DT is missing, t1.Final_Anchor, t1.GNN_MSAI_ANCHOR_DT,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change it so that it only returns the actual date or missing value as blank or 0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**I should note the formula works and returns the date in sas date format (19844, etc.).&amp;nbsp; I get the 1/1/1960 when I try to change the format....MMDDYYw.d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU!!!!!&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jan 2019 07:36:07 GMT</pubDate>
    <dc:creator>maliksmom2000</dc:creator>
    <dc:date>2019-01-14T07:36:07Z</dc:date>
    <item>
      <title>advanced expression, want date or blank</title>
      <link>https://communities.sas.com/t5/New-SAS-User/advanced-expression-want-date-or-blank/m-p/526856#M5165</link>
      <description>&lt;P&gt;I am trying to return an actual date or if date is missing I want a blank or even a 0.&amp;nbsp; It's returning the actual date or 1/1/1960&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my expression:&amp;nbsp;&amp;nbsp;ifn(t1.GNN_MSAI_ANCHOR_DT is missing, t1.Final_Anchor, t1.GNN_MSAI_ANCHOR_DT,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I change it so that it only returns the actual date or missing value as blank or 0?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**I should note the formula works and returns the date in sas date format (19844, etc.).&amp;nbsp; I get the 1/1/1960 when I try to change the format....MMDDYYw.d.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU!!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 07:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/advanced-expression-want-date-or-blank/m-p/526856#M5165</guid>
      <dc:creator>maliksmom2000</dc:creator>
      <dc:date>2019-01-14T07:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: advanced expression, want date or blank</title>
      <link>https://communities.sas.com/t5/New-SAS-User/advanced-expression-want-date-or-blank/m-p/526887#M5170</link>
      <description>&lt;P&gt;The raw value of 0 (zero) in a SAS date IS 1960-01-01, as that is the zero days for SAS date values. See &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lrcon&amp;amp;docsetTarget=p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&amp;amp;locale=en" target="_blank"&gt;About SAS Date, Time, and Datetime Values&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;A SAS date value is never "zero"; it can be a displayable date, missing, or a non-displayable value (too far back in history or too far in the future).&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 10:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/advanced-expression-want-date-or-blank/m-p/526887#M5170</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-01-14T10:08:57Z</dc:date>
    </item>
  </channel>
</rss>

