<?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: Erro no código in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Erro-no-c%C3%B3digo/m-p/936978#M45057</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;INNER JOIN ESDISTGS.TB_DIM_CURSO t2 ON t1.DS_ORIGEM = t2.DS_SISTEMA_ORIGEM&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If t1.DS_ORIGEM is numeric and t2.DS_SISTEMA_ORIGEM is character, or the other way around, this will cause the SQL to fail and produce the error message shown. It doesn't have to be this condition, you have 4 INNER JOINS and 2 WHERE conditions that could cause this error, there is no way for me to determine which of these is the problem. You can check to find which of these variables are numeric and which are character, and then you can fix the problem.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 15:05:07 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2024-07-24T15:05:07Z</dc:date>
    <item>
      <title>Erro no código</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Erro-no-c%C3%B3digo/m-p/936976#M45056</link>
      <description>&lt;P&gt;Pessoal, eu estou rodando uma query no SAS e está dando um erro.&amp;nbsp;&lt;BR /&gt;Já rodei outras códigos com os mesmos Where e funcionou, pode ser que eu esteja fazendo algum JOIN errado, ainda sou novo e estou tentando descobrir qual é a chave de cada tabela.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;O Código:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;CREATE TABLE WORK.QUERY_FOR_TB_DIM_UNDE_SCD AS&lt;BR /&gt;SELECT&lt;BR /&gt;t1.DS_ORIGEM,&lt;BR /&gt;t1.DS_CANAL,&lt;BR /&gt;t1.DS_UNIDADE_MKT,&lt;BR /&gt;t1.DS_REGIONAL,&lt;BR /&gt;t1.DS_GERENTE_SENIOR,&lt;BR /&gt;t1.DS_DIRETOR,&lt;BR /&gt;t1.DS_SUPERVISOR,&lt;BR /&gt;t1.DS_GRUPO_ECONOMICO,&lt;BR /&gt;t2.DS_CURSO_MKT,&lt;BR /&gt;t3.FL_BOLETO_PAGO,&lt;BR /&gt;t3.FL_BOLETO_DISPONIVEL,&lt;BR /&gt;t3.DT_PAGAMENTO,&lt;BR /&gt;t4.CD_CANDIDATO,&lt;BR /&gt;t4.CD_MATRICULA,&lt;BR /&gt;t4.CD_CURSO_1_OPC,&lt;BR /&gt;t4.DS_MODALIDADE,&lt;BR /&gt;t4.CD_POLO,&lt;BR /&gt;t4.DT_INSCRICAO,&lt;BR /&gt;t5.DS_SITUACAO_ACADEMICA,&lt;BR /&gt;t5.FL_PMA,&lt;BR /&gt;t5.FL_REMATRICULADO,&lt;BR /&gt;t5.DT_REMATRICULA&lt;BR /&gt;FROM ESDISTGS.TB_DIM_UNDE_SCD t1&lt;BR /&gt;INNER JOIN ESDISTGS.TB_DIM_CURSO t2 ON t1.DS_ORIGEM = t2.DS_SISTEMA_ORIGEM /*Ok*/&lt;BR /&gt;INNER JOIN ESDISTGS.TGT_BI_BOLETOS t3 ON t5.NR_CPF = t3.NR_CPF /*Ok*/&lt;BR /&gt;INNER JOIN ESDISTGS.TGT_BI_CAPTACAO_UNPR_GRAD t4 ON t1.CD_UNIDADE = t4.CD_POLO /*Ok*/&lt;BR /&gt;INNER JOIN ESDISTGS.TGT_BI_RETENCAO_ANALITICO t5 ON t1.DS_CANAL = t5.DS_CANAL&lt;BR /&gt;WHERE t5.DT_BASE = TODAY() - 1&lt;BR /&gt;AND t4.CD_MATRICULA = '45';&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;E esse é o erro que está dando:&lt;BR /&gt;&lt;BR /&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 14:08:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Erro-no-c%C3%B3digo/m-p/936976#M45056</guid>
      <dc:creator>ABBUD765</dc:creator>
      <dc:date>2024-07-24T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Erro no código</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Erro-no-c%C3%B3digo/m-p/936978#M45057</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;INNER JOIN ESDISTGS.TB_DIM_CURSO t2 ON t1.DS_ORIGEM = t2.DS_SISTEMA_ORIGEM&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If t1.DS_ORIGEM is numeric and t2.DS_SISTEMA_ORIGEM is character, or the other way around, this will cause the SQL to fail and produce the error message shown. It doesn't have to be this condition, you have 4 INNER JOINS and 2 WHERE conditions that could cause this error, there is no way for me to determine which of these is the problem. You can check to find which of these variables are numeric and which are character, and then you can fix the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 15:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Erro-no-c%C3%B3digo/m-p/936978#M45057</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-07-24T15:05:07Z</dc:date>
    </item>
  </channel>
</rss>

