<?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: Where condition in datastep in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875760#M346035</link>
    <description>&lt;P&gt;If the values are right-aligned in the character variable, use the LEFT or STRIP functions to get rid of the leading blanks. Or include the leading blanks in your values in the IN list.&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 08:49:26 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-05-15T08:49:26Z</dc:date>
    <item>
      <title>Where condition in datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875753#M346031</link>
      <description>&lt;P&gt;I am running a code like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test test1;&lt;/P&gt;&lt;P&gt;set sample;&lt;/P&gt;&lt;P&gt;if id in ("10") and code in ("26", "260", "8") then do;&lt;/P&gt;&lt;P&gt;check = yes;&lt;/P&gt;&lt;P&gt;output test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is fetching records for (10, 260) but not for (10, 26) and (10,&amp;nbsp; 8 )&lt;/P&gt;&lt;P&gt;please suggest&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 08:23:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875753#M346031</guid>
      <dc:creator>nxmogil</dc:creator>
      <dc:date>2023-05-15T08:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition in datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875760#M346035</link>
      <description>&lt;P&gt;If the values are right-aligned in the character variable, use the LEFT or STRIP functions to get rid of the leading blanks. Or include the leading blanks in your values in the IN list.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 08:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875760#M346035</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-15T08:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition in datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875768#M346039</link>
      <description>&lt;P&gt;Please look at the following example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   input id $ code $;
datalines;
10 26
10 260
10 8
1 2
;
run;

data want want_all;
set have;
if id in ("10") and code in ("26", "260", "8") then do;
	check = 'yes';
	output want;
end;
output want_all;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 May 2023 09:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875768#M346039</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2023-05-15T09:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Where condition in datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875818#M346061</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 14:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-condition-in-datastep/m-p/875818#M346061</guid>
      <dc:creator>nxmogil</dc:creator>
      <dc:date>2023-05-15T14:01:02Z</dc:date>
    </item>
  </channel>
</rss>

