<?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: Logic Operator? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415008#M101745</link>
    <description>&lt;P&gt;Anything greater than 0 is true in SAS and that will operate similar to a Boolean operator.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 02:29:41 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-11-21T02:29:41Z</dc:date>
    <item>
      <title>Logic Operator?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415005#M101743</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can someone help to decipher this code?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;TARGET_TKLPVS_ACQ=(TARGET_TKFLINK_ACQ OR TARGET_PVS_ACQ);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;where,&lt;BR /&gt;&lt;SPAN&gt;TARGET_TKFLINK_ACQ and TARGET_PVS_ACQ are the variables, and&amp;nbsp;TARGET_TKLPVS_ACQ is the product(new column).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this similar to the boolean operator where either one of them is true then it will produce 1 and produce 0 when false?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- But from the expected result, regardless of true/false it produce 0.&lt;BR /&gt;&lt;BR /&gt;Is there any plausible answer for this?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 02:27:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415005#M101743</guid>
      <dc:creator>Wken1122</dc:creator>
      <dc:date>2017-11-21T02:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Operator?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415008#M101745</link>
      <description>&lt;P&gt;Anything greater than 0 is true in SAS and that will operate similar to a Boolean operator.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 02:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415008#M101745</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-21T02:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Operator?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415010#M101747</link>
      <description>&lt;P&gt;Experiment...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;33   data _null_;
34   TARGET_TKFLINK_ACQ = 1;
35   TARGET_PVS_ACQ = 0;
36   TARGET_TKLPVS_ACQ=(TARGET_TKFLINK_ACQ OR TARGET_PVS_ACQ);
37   put _all_;
38   run;

TARGET_TKFLINK_ACQ=1 TARGET_PVS_ACQ=0 &lt;FONT color="#0000ff"&gt;TARGET_TKLPVS_ACQ=1&lt;/FONT&gt; _ERROR_=0 _N_=1
NOTE: DATA statement used (Total process time):
      real time           0.27 seconds
      cpu time            0.03 seconds
&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:05:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415010#M101747</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-21T03:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logic Operator?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415022#M101750</link>
      <description>&lt;P&gt;Yes, you will get a Boolean result.&amp;nbsp; SAS evaluates that 0 and missing values are false, and anything else (whether positive or negative, integer or decimal) is true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are getting all zeros and expected something different, check the spelling of your variable names first, and the values second.&amp;nbsp; There is no room for SAS to go wrong when evaluating true vs. false.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 04:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Logic-Operator/m-p/415022#M101750</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-21T04:46:29Z</dc:date>
    </item>
  </channel>
</rss>

