<?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: Need to filter a condition in Proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377654#M90704</link>
    <description>By the loonof the eye this aboukd work. The p isn't in lowcase...?</description>
    <pubDate>Thu, 20 Jul 2017 06:33:50 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-07-20T06:33:50Z</dc:date>
    <item>
      <title>Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377633#M90698</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I need to put&amp;nbsp; a condition in my sql code for not fetching the vlaue 'P' for a column clm_ind, tried&lt;STRONG&gt;&amp;lt;&amp;gt; and also&amp;nbsp;not in &lt;/STRONG&gt;in the where conditions but its not working. The column in charector with a length of 1. Tried with strip(clm_ind) not in 'P' but not working . Please advice me what would be the problem&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 03:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377633#M90698</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-07-20T03:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377634#M90699</link>
      <description>&lt;P&gt;Please show your code and ideally data that replicates the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 03:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377634#M90699</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-20T03:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377639#M90700</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE
	CL.CL_CLAIM_STATUS_CD IN ('O', 'R') 
	AND (CL.CL_CONV_CLAIM_IND) &amp;lt;&amp;gt;'P'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The above (claim_status) condition is working but the claim conv not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The conv column has values like P,Blank and N&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 04:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377639#M90700</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-07-20T04:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377641#M90701</link>
      <description>&lt;P&gt;I would try the SAS 'not equals' operator, although I doubt that's the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Check the data type/format. Is there a format applied, if so, you need the underlying value. Or check if there's trailing spaces with TRIM()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where trim(x) ne 'P' &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 04:23:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377641#M90701</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-20T04:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377644#M90702</link>
      <description>&lt;P&gt;Hi used the code but stil no luck. The data format is charector ($1.)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 05:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377644#M90702</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-07-20T05:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377654#M90704</link>
      <description>By the loonof the eye this aboukd work. The p isn't in lowcase...?</description>
      <pubDate>Thu, 20 Jul 2017 06:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377654#M90704</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-07-20T06:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377670#M90709</link>
      <description>&lt;P&gt;Hi Team , the below code I applied and it got worked , Could somebody explains me how it worked&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;COALESCE(CL_CONV_CLAIM_IND,'') &amp;lt;&amp;gt; 'P'&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jul 2017 08:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377670#M90709</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2017-07-20T08:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter a condition in Proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377777#M90734</link>
      <description>&lt;P&gt;Your working code is a random win, it is not the solution or the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this (pseudocode since I don't have SAS currently):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WHERE UPCASE(SUBSTR(STRIP(CL_CONV_CLAIM_IND),1,1) ) &amp;lt;&amp;gt; 'P'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will tell us what is happening. My guess is that the claim code field is not a length of 1 but a format of $1 so it looks like 1 when it is not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-filter-a-condition-in-Proc-sql/m-p/377777#M90734</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2017-07-20T14:04:33Z</dc:date>
    </item>
  </channel>
</rss>

