<?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: Create table to meet certain conditions in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422855#M68059</link>
    <description>&lt;P&gt;because diabetes='Yes', cholesterol='Yes', and Hep B='Yes.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only patients where either HIV='Yes' or cancer='Yes' and everything else='No.'&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2017 19:39:57 GMT</pubDate>
    <dc:creator>jcapua2</dc:creator>
    <dc:date>2017-12-20T19:39:57Z</dc:date>
    <item>
      <title>Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422851#M68057</link>
      <description>&lt;P&gt;Hello. I need help with producing 2 separate tables from the original table, where one table contains observations with specific variables=Yes, but only those variables='Yes.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, I only want patients who have HIV='Yes' or cancer='Yes', and nothing else='Yes'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;patient&lt;/TD&gt;&lt;TD&gt;diabetes&lt;/TD&gt;&lt;TD&gt;cholesterol&lt;/TD&gt;&lt;TD&gt;HIV&lt;/TD&gt;&lt;TD&gt;cancer&lt;/TD&gt;&lt;TD&gt;Hep B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;patient_1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&l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&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*only patients where HIV='Yes' or cancer='Yes' and everything else='No'*/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data want1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set have;&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;patient&lt;/TD&gt;&lt;TD&gt;diabetes&lt;/TD&gt;&lt;TD&gt;cholesterol&lt;/TD&gt;&lt;TD&gt;HIV&lt;/TD&gt;&lt;TD&gt;cancer&lt;/TD&gt;&lt;TD&gt;Hep B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;patient_4&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;patient_6&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;patient_7&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;TD&gt;Yes&lt;/TD&gt;&lt;TD&gt;No&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*every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&lt;/P&gt;&lt;P&gt;Is there a way to do it in SQL or SAS datastep? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:29:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422851#M68057</guid>
      <dc:creator>jcapua2</dc:creator>
      <dc:date>2017-12-20T19:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422854#M68058</link>
      <description>&lt;P&gt;why is patient1 in want2 when cancer='Yes' ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for that matter patient2 in want2 when HIV='Yes'&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422854#M68058</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-20T19:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422855#M68059</link>
      <description>&lt;P&gt;because diabetes='Yes', cholesterol='Yes', and Hep B='Yes.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only patients where either HIV='Yes' or cancer='Yes' and everything else='No.'&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422855#M68059</guid>
      <dc:creator>jcapua2</dc:creator>
      <dc:date>2017-12-20T19:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422857#M68060</link>
      <description>&lt;P&gt;Here is how you could do it using a data step:&lt;/P&gt;
&lt;PRE&gt;data want1 want2;
  set have;
  if (HIV eq 'Yes' or cancer eq 'Yes') and
    (diabetes NE 'Yes' and cholesterol NE 'Yes' and
     Hep_B ne 'Yes') then output want1;
  else output want2;
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422857#M68060</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-12-20T19:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422858#M68061</link>
      <description>&lt;P&gt;Are your values actually character 'Yes' and 'No' or are they numeric with a format applied?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In many cases splitting data yields less efficient use than having a variable to indicate group membership and using BY processing on that variable.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422858#M68061</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-12-20T19:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422860#M68062</link>
      <description>&lt;P&gt;&lt;BR /&gt;data have;&lt;BR /&gt;infile datalines truncover;&lt;BR /&gt;input (patient diabetes cholesterol HIV cancer Hep_B) (:$10.);&lt;BR /&gt;datalines;&lt;BR /&gt;patient_1 Yes Yes No Yes Yes&lt;BR /&gt;patient_2 Yes No Yes No No&lt;BR /&gt;patient_3 No No No No Yes&lt;BR /&gt;patient_4 No No Yes No No&lt;BR /&gt;patient_5 No Yes No No Yes&lt;BR /&gt;patient_6 No No Yes Yes No&lt;BR /&gt;patient_7 No No No Yes No&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want1 want2;&lt;BR /&gt;set have;&lt;BR /&gt;array a(*) diabetes cholesterol Hep_B;&lt;BR /&gt;if cancer='Yes' and (cancer not in a) then _flag=1;&lt;BR /&gt;if HIV='Yes' and (hiv not in a) then __flag=1;&lt;BR /&gt;if _flag or __flag then output want1;&lt;BR /&gt;else if not(_flag) and not(__flag) then output want2;&lt;BR /&gt;drop _:;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 19:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422860#M68062</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-20T19:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422865#M68064</link>
      <description>&lt;P&gt;For completeness since SQL was mentioned:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data patients;
  input patient $9. diabetes:$3. cholesterol:$3. hiv:$3. cancer:$3. hep_b:$3.;
  datalines;
patient_1 Yes Yes No Yes Yes
patient_2 Yes No Yes No	No
patient_3 No No No No Yes
patient_4 No No	Yes	No	No
patient_5 No Yes No No Yes
patient_6 No No	Yes	Yes	No
patient_7 No No	No Yes No
;
run;

proc sql;
	create table want1 as 
		select * 
		from patients
		where (diabetes = 'No' and cholesterol = 'No' and hep_b = 'No') and (hiv = 'Yes' or cancer = 'Yes');
quit;

proc sql;
	create table want2 as 
		select * 
		from patients
		where (diabetes = 'Yes' or cholesterol = 'Yes' or hep_b = 'Yes');
quit;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Dec 2017 20:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422865#M68064</guid>
      <dc:creator>HB</dc:creator>
      <dc:date>2017-12-20T20:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422866#M68065</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DATA step is an excellent way to achieve what you want as it allows you to create one or more datasets in a single DATA step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case you have a dataset, &lt;FONT face="courier new,courier"&gt;WORK.HAVE&lt;/FONT&gt; that you want to split out into two datasets, &lt;FONT face="courier new,courier"&gt;WORK.WANT1&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;WORK.WANT2&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whilst the method shown below works perfectly well, you may want to review things if the number of ailments (diabetes, cholestorol etc.) increases and/or your selection criteria gets more complex.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having said that, try this out and see if it does what you need. Any record that does not meet the first criterion for inclusion in &lt;FONT face="courier new,courier"&gt;WORK.WANT1&lt;/FONT&gt; will be swallowed up by the catch-all &lt;FONT face="courier new,courier"&gt;ELSE&lt;/FONT&gt; statement and get sent to &lt;FONT face="courier new,courier"&gt;WORK.WANT2&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that the &lt;FONT face="courier new,courier"&gt;HIV Or Cancer&lt;/FONT&gt; check is inside a pair of parentheses so that this is evaluated separately from the remainder of the IF statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;****************************************************************;
*Read in your Patient dataa.                                    ;
****************************************************************;
Data HAVE;
 Input  patient	$9.
        diabetes $	
        cholesterol	$
        HIV	$
        cancer	$
        Hep_B $
        ;
DATALINES;
patient_1 Yes Yes No Yes Yes
patient_2 Yes No Yes No No
patient_3 No No No No Yes
patient_4 No No Yes No No
patient_5 No Yes No No Yes
patient_6 No No Yes Yes No
patient_7 No No No Yes No
;
Run;

****************************************************************;
*Decide which of the WANTn datasets a record should go to.      ;
****************************************************************;
Data WANT1
     WANT2
     ;

 Set HAVE;

 If (HIV="Yes" Or Cancer="Yes") 
    And
    Diabetes="No"
    And
    Cholesterol="No"
    And
    Hep_B="No"
    Then Output WANT1;

 Else Output WANT2;

Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Downunder Dave&lt;/P&gt;
&lt;P&gt;Wellington.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 20:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422866#M68065</guid>
      <dc:creator>DaveShea</dc:creator>
      <dc:date>2017-12-20T20:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422911#M68067</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;: Actually, I like your use of an array in solving this problem, but didn't like your creating two flag variables.&lt;/P&gt;
&lt;P&gt;Here is an alternative that uses arrays and, methinks, makes the code both more extensible and easier to read:&lt;/P&gt;
&lt;PRE&gt;data want1 want2;
  set have;
  array musthaveone(*) HIV cancer;
  array canthaveany(*) diabetes cholesterol Hep_B;
  if 'Yes' in musthaveone  and
    'Yes' not in canthaveany then output want1;
  else output want2;
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 23:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422911#M68067</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-12-20T23:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422912#M68068</link>
      <description>&lt;P&gt;Thank you Art&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;&amp;nbsp; &amp;nbsp;Wish the thought of using a constant operand check struck my mind earlier.&amp;nbsp; I often have this approach to avoid using constant operand as opposed to variable operand thinking to make it more squeaking clean. Nonetheless your demonstration proves otherwise. Well, I have learned now. Cheers! and Thanks again&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 23:41:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422912#M68068</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-20T23:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422914#M68069</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13711"&gt;@art297&lt;/a&gt;Art, How about still sticking to one array and making it all compound expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want1 want2;&lt;BR /&gt;set have;&lt;BR /&gt;array a(*) diabetes cholesterol Hep_B;&lt;BR /&gt;&lt;EM&gt;if (cancer='Yes' and (cancer not in a)) or (HIV='Yes' and (hiv not in a)) then output want1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else if not((cancer='Yes' and (cancer not in a)) or (HIV='Yes' and (hiv not in a))) then output want2;&lt;/EM&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 23:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422914#M68069</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-20T23:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create table to meet certain conditions</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422915#M68070</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;: No! Takes longer to run, is less extensible (IMHO), and is (IMHO) harder to read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 23:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Create-table-to-meet-certain-conditions/m-p/422915#M68070</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-12-20T23:55:24Z</dc:date>
    </item>
  </channel>
</rss>

