<?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: Error using WHERE clause in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596243#M171642</link>
    <description>&lt;P&gt;Your code is fine. The code below runs without errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it seems like CEDED_FLG is a numeric variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cashflow;
    CEDED_FLG="Y/N";
run;

proc sql;
create table temp as select * from cashflow
where CEDED_FLG = "Y/N";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Oct 2019 12:46:32 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-10-14T12:46:32Z</dc:date>
    <item>
      <title>Error using WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596240#M171640</link>
      <description>&lt;P&gt;Could you please help me to get rid of this error? CEDED_FLG is a character field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26         proc sql;
27         create table temp as select * from cashflow
28         where CEDED_FLG = “Y/N”;
ERROR: Expression using equals (=) has components that are of different data types.
ERROR: The following columns were not found in the contributing tables: 'N”'n, '“Y'n.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:44:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596240#M171640</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2019-10-14T12:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error using WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596243#M171642</link>
      <description>&lt;P&gt;Your code is fine. The code below runs without errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, it seems like CEDED_FLG is a numeric variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cashflow;
    CEDED_FLG="Y/N";
run;

proc sql;
create table temp as select * from cashflow
where CEDED_FLG = "Y/N";
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596243#M171642</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-14T12:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error using WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596247#M171644</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Could you please help me to get rid of this error? CEDED_FLG is a character field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;26         proc sql;
27         create table temp as select * from cashflow
28         where CEDED_FLG = “Y/N”;
ERROR: Expression using equals (=) has components that are of different data types.
ERROR: The following columns were not found in the contributing tables: 'N”'n, '“Y'n.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In your data set cashflow, CEDED_FLG is not a character variable, it must be a numeric variable.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:52:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596247#M171644</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-14T12:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error using WHERE clause</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596249#M171646</link>
      <description>&lt;P&gt;Looks like you have been bitten by the Microsoft "smart" quotes.&amp;nbsp; Instead of a quoted string SAS is seeing two goofy variable names being divided.&lt;/P&gt;
&lt;P&gt;Use only normal ASCII characters in the code.&amp;nbsp; Not typesetting characters intended for book publishing.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 12:52:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-using-WHERE-clause/m-p/596249#M171646</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-14T12:52:46Z</dc:date>
    </item>
  </channel>
</rss>

