<?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: In operator not working in PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251877#M47674</link>
    <description>&lt;P&gt;Perfect. It works. &amp;nbsp;Thanks !&lt;/P&gt;</description>
    <pubDate>Tue, 23 Feb 2016 21:22:33 GMT</pubDate>
    <dc:creator>SAS_inquisitive</dc:creator>
    <dc:date>2016-02-23T21:22:33Z</dc:date>
    <item>
      <title>In operator not working in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251851#M47656</link>
      <description>&lt;P&gt;The following PROC SQL code does not work while the DATA step works.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table want as
  select *
    from sashelp.class
	where name in: ('Al','Wi');
quit;

data want;
  set sashelp.class;
  where name in: ('Al','Wi');
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251851#M47656</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-23T20:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: In operator not working in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251854#M47658</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;32         GOPTIONS ACCESSIBLE;
33         proc sql;
34           create table want as
35           select *
36             from sashelp.class
37         	where name in: ('Al','Wi');
                         _
                         22
                         200
ERROR 22-322: Syntax error, expecting one of the following: (, SELECT.  

ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Did you notice this error?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251854#M47658</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-23T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: In operator not working in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251857#M47660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/64404"&gt;@SAS_inquisitive﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The IN operator &lt;EM&gt;is&lt;/EM&gt; working in PROC SQL, but PROC SQL does not support the &lt;EM&gt;colon&lt;/EM&gt; operators for truncated string comparisons. There are equivalents to =:, &amp;lt;: etc. (EQT, LTT, ...), but I'm not aware of an equivalent to IN:.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251857#M47660</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-23T20:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: In operator not working in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251859#M47662</link>
      <description>&lt;P&gt;Nope. You are correct, not for 'in'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although there are some undocumented&amp;nbsp;equivalent&amp;nbsp;to data step:&lt;/P&gt;
&lt;P&gt;EQ:, GT:, LT:, GE:, LE:, NE:&lt;/P&gt;
&lt;P align="LEFT"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="LEFT"&gt;existing as&lt;/P&gt;
&lt;P align="LEFT"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EQT, GTT, LTT, GET, LET, NET&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in Proc SQL environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 20:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251859#M47662</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-23T20:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: In operator not working in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251873#M47671</link>
      <description>&lt;P&gt;You could use the WHERE= dataset option in PROC SQL and use the IN: operator there:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table want(where=(name in: ('Al','Wi'))) as
  select *
    from sashelp.class;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251873#M47671</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-23T21:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: In operator not working in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251877#M47674</link>
      <description>&lt;P&gt;Perfect. It works. &amp;nbsp;Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 21:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/In-operator-not-working-in-PROC-SQL/m-p/251877#M47674</guid>
      <dc:creator>SAS_inquisitive</dc:creator>
      <dc:date>2016-02-23T21:22:33Z</dc:date>
    </item>
  </channel>
</rss>

