<?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: If then else with two date variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251570#M47560</link>
    <description>&lt;P&gt;How does SAS store dates?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply a format,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format new_var date9.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Feb 2016 15:57:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-02-22T15:57:45Z</dc:date>
    <item>
      <title>If then else with two date variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251565#M47556</link>
      <description>&lt;P&gt;Hi, the data have 2 date variables and I wanted to create third one called PPC_closing&lt;/P&gt;&lt;P&gt;data final3;&lt;BR /&gt;set final2;&lt;BR /&gt;if whichone='decemberppc' then PPC_closing = PPC_CLOSING_EFF_DATE1;&lt;BR /&gt;else PPC_closing = PPC_CLOSING_EFF_DATE;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the result still showing numbers and missing values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to make it original date?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 15:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251565#M47556</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-22T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: If then else with two date variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251567#M47557</link>
      <description>&lt;P&gt;Post some sample data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your IF condition not working? If so, check and make sure the case of the word matches exactly.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 15:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251567#M47557</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-22T15:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: If then else with two date variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251568#M47558</link>
      <description>the If is working but the new variable showing 20441 but I need to original date</description>
      <pubDate>Mon, 22 Feb 2016 15:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251568#M47558</guid>
      <dc:creator>bohonghong</dc:creator>
      <dc:date>2016-02-22T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: If then else with two date variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251569#M47559</link>
      <description>&lt;P&gt;If you want PPC_closing to appear as a date, you need to assign it a proper date format (FORMAT statement).&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2016 15:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251569#M47559</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-22T15:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: If then else with two date variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251570#M47560</link>
      <description>&lt;P&gt;How does SAS store dates?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply a format,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format new_var date9.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Feb 2016 15:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-two-date-variables/m-p/251570#M47560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-22T15:57:45Z</dc:date>
    </item>
  </channel>
</rss>

