<?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 Search inquire in two columns? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831410#M328529</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to raise a flag when the texts in 'Description' column are the same and the 'Class' are different.&amp;nbsp; The final result should be at the rows, 1&amp;amp;3&amp;amp;4&amp;amp;5.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dataIN;
   infile datalines dsd;
   input Class : $50. Department  : $100. Description  : $100.;
   datalines;
	ICU,RESPIRATORY THERAPY, VENT OSCILLATOR CIRCUIT
	ICU,R&amp;amp;C/NURS UNIT, ROOM &amp;amp; CARE, PEDS ICU
	PF, EMERGENCY DEPT, VENT OSCILLATOR CIRCUIT
	Room, R&amp;amp;C/NURS UNIT, ED VISIT III
	Supply, EMERGENCY DEPT, ED VISIT III
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 01 Sep 2022 13:48:00 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2022-09-01T13:48:00Z</dc:date>
    <item>
      <title>Search inquire in two columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831410#M328529</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I would like to raise a flag when the texts in 'Description' column are the same and the 'Class' are different.&amp;nbsp; The final result should be at the rows, 1&amp;amp;3&amp;amp;4&amp;amp;5.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dataIN;
   infile datalines dsd;
   input Class : $50. Department  : $100. Description  : $100.;
   datalines;
	ICU,RESPIRATORY THERAPY, VENT OSCILLATOR CIRCUIT
	ICU,R&amp;amp;C/NURS UNIT, ROOM &amp;amp; CARE, PEDS ICU
	PF, EMERGENCY DEPT, VENT OSCILLATOR CIRCUIT
	Room, R&amp;amp;C/NURS UNIT, ED VISIT III
	Supply, EMERGENCY DEPT, ED VISIT III
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2022 13:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831410#M328529</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-09-01T13:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search inquire in two columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831411#M328530</link>
      <description>&lt;P&gt;I don't understand this. Can you show us your desired result?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 13:51:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831411#M328530</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2022-09-01T13:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search inquire in two columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831416#M328534</link>
      <description>&lt;P&gt;I got an email back from&amp;nbsp;Ksharp.&amp;nbsp; His code is working.&amp;nbsp; However, I could not find his message here.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select * from dataIN
 group by Description
  having count(distinct Class) &amp;gt;1 ;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Sep 2022 14:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831416#M328534</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2022-09-01T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search inquire in two columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831525#M328611</link>
      <description>Please test your code to provide data, and make sure it is working properly before you create your message. Your code to provide data does not work.</description>
      <pubDate>Fri, 02 Sep 2022 11:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831525#M328611</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-02T11:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search inquire in two columns?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831551#M328622</link>
      <description>&lt;P&gt;Good catch,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;. I assume that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;'s user interface (like the traditional Display Manager interface that I'm using) reads tabs as spaces so that the unwanted leading tab character in each data line went unnoticed.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2022 14:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Search-inquire-in-two-columns/m-p/831551#M328622</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-09-02T14:00:52Z</dc:date>
    </item>
  </channel>
</rss>

