<?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 in my sql code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688773#M37164</link>
    <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;There is no variable&amp;nbsp;moyenne_globale in your dataset.&lt;/P&gt;
&lt;P&gt;Run a PROC CONTENTS on&amp;nbsp;&lt;SPAN&gt;d1.COVID_DATA to determine which variables are contained in it.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Oct 2020 16:39:23 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-10-04T16:39:23Z</dc:date>
    <item>
      <title>Error in my sql code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688770#M37162</link>
      <description>&lt;P&gt;Please I understand the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT *,&lt;BR /&gt;70 CASE WHEN nouveaux_cas&amp;gt;moyenne_globale THEN 1&lt;BR /&gt;71 ELSE 0 end as comparaison_moyenne_globale&lt;BR /&gt;72 FROM d1.COVID_DATA;&lt;BR /&gt;ERROR: Expression using greater than (&amp;gt;) has components that are of different data types.&lt;BR /&gt;ERROR: The following columns were not found in the contributing tables: moyenne_globale.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 16:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688770#M37162</guid>
      <dc:creator>Feksan</dc:creator>
      <dc:date>2020-10-04T16:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my sql code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688771#M37163</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350608"&gt;@Feksan&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first message means that one of the data elements appears to be&amp;nbsp;&lt;STRONG&gt;character&amp;nbsp;&lt;/STRONG&gt;but the other&amp;nbsp;&lt;STRONG&gt;numeric&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;nouveaux_cas to moyenne_globale.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The second message says that the variable,&amp;nbsp;moyenne_globale, is not in the data.&amp;nbsp; If&amp;nbsp;moyenne_globale is not in the data, then SAS will assume that&amp;nbsp;moyenne_globale is&amp;nbsp;&lt;STRONG&gt;numeric&lt;/STRONG&gt;&amp;nbsp;which could cause the first message.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you run this code and post the results?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC CONTENTS DATA=D1.COVID_DATA;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 16:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688771#M37163</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-10-04T16:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my sql code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688773#M37164</link>
      <description>&lt;P&gt;Maxim 3: Know Your Data.&lt;/P&gt;
&lt;P&gt;There is no variable&amp;nbsp;moyenne_globale in your dataset.&lt;/P&gt;
&lt;P&gt;Run a PROC CONTENTS on&amp;nbsp;&lt;SPAN&gt;d1.COVID_DATA to determine which variables are contained in it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 16:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-in-my-sql-code/m-p/688773#M37164</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-10-04T16:39:23Z</dc:date>
    </item>
  </channel>
</rss>

