<?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: string Matching-proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-String-Matching-in-variable-values/m-p/425415#M104800</link>
    <description>&lt;P&gt;1. Use single quotes, not double quotes to remove the note from your log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You can combine the conditions using OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;label like '%July' or label like '%August';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use INDEXW or FINDW, but you may want to consider case, UPCASE, because in string comparisons, august is not equal to August.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2018 22:09:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-05T22:09:32Z</dc:date>
    <item>
      <title>PROC SQL - String Matching in variable values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-String-Matching-in-variable-values/m-p/425412#M104799</link>
      <description>&lt;P&gt;I want to filter rows which end with July , august and September and i want to use proc sql to do that.&lt;/P&gt;
&lt;PRE&gt;proc sql;
create table l as
select label 
from a6.labels 
where label like "%July"  ;
quit;&lt;/PRE&gt;
&lt;P&gt;This code works for filtering out rows ending with july&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(however i do get an error -&lt;SPAN&gt;WARNING: Apparent invocation of macro JULY not resolved.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how do i get rows ending with august and spetember as well in one dataset?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;where label like "%July" and "%August" &lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;this doesnt work&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-String-Matching-in-variable-values/m-p/425412#M104799</guid>
      <dc:creator>riya275</dc:creator>
      <dc:date>2018-01-05T22:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: string Matching-proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-String-Matching-in-variable-values/m-p/425415#M104800</link>
      <description>&lt;P&gt;1. Use single quotes, not double quotes to remove the note from your log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You can combine the conditions using OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;label like '%July' or label like '%August';&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use INDEXW or FINDW, but you may want to consider case, UPCASE, because in string comparisons, august is not equal to August.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:09:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-String-Matching-in-variable-values/m-p/425415#M104800</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-05T22:09:32Z</dc:date>
    </item>
  </channel>
</rss>

