<?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: INLIST in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814813#M40729</link>
    <description>&lt;P&gt;There is no obvious syntax error in your posted code. You need to post your complete SAS log including notes and errors so we can see what is happening.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 04:26:29 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-05-24T04:26:29Z</dc:date>
    <item>
      <title>INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814812#M40728</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;proc sql;
create table Btable
as select
    id,
    name,
    dob
FROM table1
UNION
SELECT 
    id,
	name,
	dob
FROM table2
where id IN ('12345' '123456');
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have tried everything to filter on these two ID's but i keep getting errors. I tried separating with a comma, semicolon - nothing seems to work.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 04:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814812#M40728</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-05-24T04:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814813#M40729</link>
      <description>&lt;P&gt;There is no obvious syntax error in your posted code. You need to post your complete SAS log including notes and errors so we can see what is happening.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 04:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814813#M40729</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-05-24T04:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814815#M40730</link>
      <description>&lt;P&gt;Please post the complete log of your SQL step by cppy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 04:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814815#M40730</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-24T04:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814879#M40735</link>
      <description>&lt;P&gt;AS an absolute minimum include the actual text of any errors. Much better is to show the entire log for the procedure run with the code and all notes, warnings or errors associated with that procedure. Copy the text from the LOG, on the forum open a text box using the &amp;lt;/&amp;gt; icon above the message window and paste the copied text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it as simple as your ID variable is numeric and you are getting errors about the wrong type such as&lt;/P&gt;
&lt;PRE&gt;ERROR: Expression using IN has components that are of different data types.
&lt;/PRE&gt;
&lt;P&gt;Then don't put quotes around the values.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814879#M40735</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-05-24T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814908#M40739</link>
      <description>I've gotten that error before but I got this error for the above:&lt;BR /&gt;ERROR: Expression using IN has components that are of different data types.&lt;BR /&gt;NOTE: The IN referred to may have been transformed from an OR to an IN at some point during PROC SQL WHERE clause optimization.&lt;BR /&gt;&lt;BR /&gt;Nothing seems to work - single quotes, double quotes, commas, no commas, semicolons...sometimes it just ignores the filter entirely and brings in all data. when i remove the quotes, it brings in all data.</description>
      <pubDate>Tue, 24 May 2022 16:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814908#M40739</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-05-24T16:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814912#M40740</link>
      <description>&lt;P&gt;Is ID a numeric variable or a character variable?&amp;nbsp; Does it have a format attached to it? Which format? Is it a SAS system format or a user defined format.&amp;nbsp; Remember you need to test for the actual values, not the values are displayed by the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are you filtering on just one of the two tables you are combining?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:41:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814912#M40740</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-24T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: INLIST</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814941#M40748</link>
      <description>that was it! i didnt filter on both - thank you thank you!</description>
      <pubDate>Tue, 24 May 2022 19:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/INLIST/m-p/814941#M40748</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2022-05-24T19:08:43Z</dc:date>
    </item>
  </channel>
</rss>

