<?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: Expression understanding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638923#M190015</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Could you please help me understand the meaning of the expression below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;REPORTING_DATE &amp;lt;= CASHFLOW_DT  &amp;gt;= ACCOUNT_DT&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Use it in a WHERE clause and SAS will show you in the LOG how it is interpreted.&lt;/P&gt;
&lt;PRE&gt;1906  data test2;
1907    set test;
1908    where REPORTING_DATE &amp;lt;= CASHFLOW_DT  &amp;gt;= ACCOUNT_DT ;
1909  run;

NOTE: There were 1 observations read from the data set WORK.TEST.
      WHERE (REPORTING_DATE&amp;lt;=CASHFLOW_DT) and (CASHFLOW_DT&amp;gt;=ACCOUNT_DT);
&lt;/PRE&gt;
&lt;P&gt;It is a little unusual to see this construct used when the inequalities point in different directions.&amp;nbsp; Another way to get the same would be something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;max(REPORTING_DATE,ACCOUNT_DT) &amp;lt;= CASHFLOW_DT &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 10 Apr 2020 13:08:15 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-04-10T13:08:15Z</dc:date>
    <item>
      <title>Expression understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638892#M190001</link>
      <description>&lt;P&gt;Could you please help me understand the meaning of the expression below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;REPORTING_DATE &amp;lt;= CASHFLOW_DT  &amp;gt;= ACCOUNT_DT&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2020 09:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638892#M190001</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-04-10T09:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638893#M190002</link>
      <description>&lt;P&gt;It is a logical expression that is true (1) when CASHFLOW_DT is larger than (or equal to) both of the other variables. Otherwise it is false (0).&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 10:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638893#M190002</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-10T10:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Expression understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638899#M190005</link>
      <description>&lt;P&gt;It's the same as&lt;/P&gt;
&lt;PRE&gt;REPORTING_DATE &amp;lt;= CASHFLOW_DT and CASHFLOW_DT &amp;gt;= ACCOUNT_DT&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 11:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638899#M190005</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-04-10T11:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638923#M190015</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Could you please help me understand the meaning of the expression below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;REPORTING_DATE &amp;lt;= CASHFLOW_DT  &amp;gt;= ACCOUNT_DT&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Use it in a WHERE clause and SAS will show you in the LOG how it is interpreted.&lt;/P&gt;
&lt;PRE&gt;1906  data test2;
1907    set test;
1908    where REPORTING_DATE &amp;lt;= CASHFLOW_DT  &amp;gt;= ACCOUNT_DT ;
1909  run;

NOTE: There were 1 observations read from the data set WORK.TEST.
      WHERE (REPORTING_DATE&amp;lt;=CASHFLOW_DT) and (CASHFLOW_DT&amp;gt;=ACCOUNT_DT);
&lt;/PRE&gt;
&lt;P&gt;It is a little unusual to see this construct used when the inequalities point in different directions.&amp;nbsp; Another way to get the same would be something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;max(REPORTING_DATE,ACCOUNT_DT) &amp;lt;= CASHFLOW_DT &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Apr 2020 13:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Expression-understanding/m-p/638923#M190015</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-10T13:08:15Z</dc:date>
    </item>
  </channel>
</rss>

