<?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: data step in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800806#M315092</link>
    <description>&lt;P&gt;&lt;SPAN&gt;~= means Not Equal To .&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 09:00:53 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2022-03-08T09:00:53Z</dc:date>
    <item>
      <title>data step and where logic</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800803#M315090</link>
      <description>&lt;PRE&gt;data apple;
set lemon (in=1);
if a then country='MAC";
where samp ~=' ' and account ~= ' ' and index(applepie,'apple');
length score $20.;
score_type=40;
run;
&lt;/PRE&gt;
&lt;P&gt;hi can you explain the statement 'where samp....'&lt;/P&gt;
&lt;P&gt;we are not too sure how the index statement is working here either.. thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800803#M315090</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-03-08T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800806#M315092</link>
      <description>&lt;P&gt;&lt;SPAN&gt;~= means Not Equal To .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 09:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800806#M315092</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-03-08T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800809#M315094</link>
      <description>yes we are aware of that, what we dont get is output of the index function, is it gonna be true or false?&lt;BR /&gt;also if the three conditions of where statement are all true, the line below where statement will run? &lt;BR /&gt;if where conditions not met, the line below where statement wont run?</description>
      <pubDate>Tue, 08 Mar 2022 09:29:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800809#M315094</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2022-03-08T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800815#M315095</link>
      <description>&lt;P&gt;Yes, it will be evaluated for True or False. In SAS, anything else than 0 is considered True.&lt;/P&gt;
&lt;P&gt;Where statement doesn't affect logic in your data step, it will filter data to be executed by the data step as a whole.&lt;/P&gt;
&lt;P&gt;To control logic use the IF statement.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800815#M315095</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-03-08T10:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800816#M315096</link>
      <description>&lt;P&gt;Yes, it will be evaluated for True or False. In SAS, anything else than 0 is considered True.&lt;/P&gt;
&lt;P&gt;Where statement doesn't affect logic in your data step, it will filter data to be executed by the data step as a whole.&lt;/P&gt;
&lt;P&gt;To control logic use the IF statement.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800816#M315096</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-03-08T10:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: data step</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800819#M315098</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;if where conditions not met, the line below where statement wont run?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Exactly and it doesn't matter where you have the where statement in the data step. So you should put the where statement directly after the set statement to avoid confusion.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-and-where-logic/m-p/800819#M315098</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-03-08T10:10:18Z</dc:date>
    </item>
  </channel>
</rss>

