<?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 use where if in data step? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341450#M78154</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130031"&gt;@afiqcjohari&lt;/a&gt; wrote:&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;where cPOSMode in ('07','90') or (cPOSMode in ('02') and cToken is not null and cPvder is not null and idTReq is not null);&lt;BR /&gt;;run;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 07:47:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-16T07:47:32Z</dc:date>
    <item>
      <title>How to use where if in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341439#M78146</link>
      <description>&lt;PRE&gt;	data want1;
		set have;
		where cPOSMode in ('07','90');
	run;
	data want2;
		set have;
		where cPOSMode in ('02') 
			and cToken is not null
			and cPvder is not null
			and idTReq is not null;
	run;
       
        data want1; set want1 want2;run;&lt;/PRE&gt;&lt;P&gt;How do I simplify above 3 data steps into 1?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 07:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341439#M78146</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-16T07:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use where if in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341443#M78149</link>
      <description>&lt;P&gt;Combine WHERE clauses into 1 step using an OR&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 07:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341443#M78149</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-16T07:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to use where if in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341444#M78150</link>
      <description>data want;&lt;BR /&gt;set have;&lt;BR /&gt;where cPOSMode in ('07','90') or (cPOSMode in ('02') and cToken is not null and cPvder is not null and idTReq is not null);&lt;BR /&gt;;run;</description>
      <pubDate>Thu, 16 Mar 2017 07:31:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341444#M78150</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-16T07:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to use where if in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341450#M78154</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130031"&gt;@afiqcjohari&lt;/a&gt; wrote:&lt;BR /&gt;data want;&lt;BR /&gt;set have;&lt;BR /&gt;where cPOSMode in ('07','90') or (cPOSMode in ('02') and cToken is not null and cPvder is not null and idTReq is not null);&lt;BR /&gt;;run;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 07:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341450#M78154</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-16T07:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use where if in data step?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341493#M78181</link>
      <description>&lt;PRE&gt;data want;
  set have;
  if cposmode in ('07','90') or
     cposmode='02 and (ctoken ne "" and cpvder ne "" and idtreq ne "") then output;
run; &lt;/PRE&gt;
&lt;P&gt;Note, I assume the three varaibles are character as you don't say. &amp;nbsp;Also, use one casing for your code, mixing casing makes code harder to read.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 09:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-use-where-if-in-data-step/m-p/341493#M78181</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-16T09:27:55Z</dc:date>
    </item>
  </channel>
</rss>

