<?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: how to compare two date in a if statement? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-compare-two-date-in-a-if-statement/m-p/691388#M37298</link>
    <description>&lt;P&gt;Without quotes, SEP2020 is a variable name for the data step compiler. You have to enclose the macro variables in double quotes to make them strings.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 20:31:32 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-10-13T20:31:32Z</dc:date>
    <item>
      <title>how to compare two date in a if statement?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-compare-two-date-in-a-if-statement/m-p/691381#M37295</link>
      <description>&lt;P&gt;%let File1Date=SEP2020;&lt;BR /&gt;%let File2Date=OCT2020;&lt;BR /&gt;%LET Nobs1=5;&lt;BR /&gt;%LET Nobs2=5;&lt;/P&gt;
&lt;P&gt;Data _null_;&lt;/P&gt;
&lt;P&gt;if input(&amp;amp;File1Date.,monyy7.) ne input(&amp;amp;File2Date.,monyy7.) then call symputx('Nobs1',0);&lt;BR /&gt;run;&lt;BR /&gt;%put &amp;amp;Nobs1. &amp;amp;Nobs2. ;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 20:15:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-compare-two-date-in-a-if-statement/m-p/691381#M37295</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2020-10-13T20:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to compare two date in a if statement?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-compare-two-date-in-a-if-statement/m-p/691388#M37298</link>
      <description>&lt;P&gt;Without quotes, SEP2020 is a variable name for the data step compiler. You have to enclose the macro variables in double quotes to make them strings.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 20:31:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-compare-two-date-in-a-if-statement/m-p/691388#M37298</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-13T20:31:32Z</dc:date>
    </item>
  </channel>
</rss>

