<?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: How to fix ERROR: Unresolved reference to table/correlation name A in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594452#M170783</link>
    <description>&lt;P&gt;i am not familiar with using the "(WHERE({COLNAME}={VALUE})).&amp;nbsp; if it works, then cool... otherwise, you may want to try the code below.&amp;nbsp; i think it ought to work.&lt;/P&gt;&lt;PRE&gt;PROC SQL; 
	CREATE TABLE SPDSWORK.CORE_APP AS 
	SELECT 
	A.CSID
	,A.CSREQUESTNUMBER
	,A.TRANSACTION_DTTM
	,A.PROCESSED_DTTM
	,A.PRODUCT_CATEGORY
	,A.APPLICATIONSCORING
	,A.SOURCEOFAPPLICATION 
	,A.GUARANTEEDAPPLICATIONIND 
	,A.REPROCESSQUANTITY 
        ,B.APPLICANT_SEQ
	,B.CIDPERSID AS CUS1_CIDPERSID 
        ,C.CIDPERSID AS CUS2_CIDPERSID 
	,D.SCOREMODELNAME 
	,E.OPENED_DT
	,1 AS NB_FLAG
	FROM SPDSWORK.OMDM_APPLICATION A 
	INNER JOIN SPDSWORK.APPLICANT  B
	ON A.CSID = B.CSID AND  b.APPLICATNT_SEQ=1
	LEFT JOIN SPDSWORK.APPLICANT  C
	ON A.CSID = C.CSID AND  c.APPLICATNT_SEQ=2
	INNER JOIN SPDSWORK.APPLICATIONSCORING D
    ON A.CSID = D.CSID
	LEFT JOIN SPDSWORK.CARDS_ACC2APP_LINKAGE E
    ON A.CSID = E.CSID
;
QUIT;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Oct 2019 12:02:33 GMT</pubDate>
    <dc:creator>utrocketeng</dc:creator>
    <dc:date>2019-10-07T12:02:33Z</dc:date>
    <item>
      <title>How to fix ERROR: Unresolved reference to table/correlation name A</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594450#M170781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to inner join table A on to B, including other subsequent joins as seen below in my code.&lt;/P&gt;&lt;P&gt;I had selected the columns I needed and have included other columns I am extracting also, from the tables I'm joining.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL; 
	CREATE TABLE SPDSWORK.CORE_APP AS 
	SELECT 
	A.CSID
	,A.CSREQUESTNUMBER
	,A.TRANSACTION_DTTM
	,A.PROCESSED_DTTM
	,A.PRODUCT_CATEGORY
	,A.APPLICATIONSCORING
	,A.SOURCEOFAPPLICATION 
	,A.GUARANTEEDAPPLICATIONIND 
	,A.REPROCESSQUANTITY 
        ,B.APPLICANT_SEQ
	,B.CIDPERSID AS CUS1_CIDPERSID 
        ,C.CIDPERSID AS CUS2_CIDPERSID 
	,D.SCOREMODELNAME 
	,E.OPENED_DT
	,1 AS NB_FLAG
	FROM SPDSWORK.OMDM_APPLICATION A 
	INNER JOIN SPDSWORK.APPLICANT (WHERE=(APPLICANT_SEQ=1)) B
	ON A.CSID = B.CSID
	LEFT JOIN SPDSWORK.APPLICANT (WHERE=(APPLICANT_SEQ=2)) C
	ON A.CSID = C.CSID
	INNER JOIN SPDSWORK.APPLICATIONSCORING D
    ON A.CSID = D.CSID
	LEFT JOIN SPDSWORK.CARDS_ACC2APP_LINKAGE E
    ON A.CSID = E.CSID
;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm receiving an error message:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Unresolved reference to table/correlation name A.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;I'm not sure why I am receiving this message, especially the first one. Does anyone know how I can fix this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Many thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 11:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594450#M170781</guid>
      <dc:creator>guest1994</dc:creator>
      <dc:date>2019-10-07T11:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix ERROR: Unresolved reference to table/correlation name A</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594451#M170782</link>
      <description>&lt;P&gt;You are trying to use an equal sign to compare two different variables that are different types ... in other words, one is character and one is numeric, and these cannot be compared directly.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 12:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594451#M170782</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-07T12:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix ERROR: Unresolved reference to table/correlation name A</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594452#M170783</link>
      <description>&lt;P&gt;i am not familiar with using the "(WHERE({COLNAME}={VALUE})).&amp;nbsp; if it works, then cool... otherwise, you may want to try the code below.&amp;nbsp; i think it ought to work.&lt;/P&gt;&lt;PRE&gt;PROC SQL; 
	CREATE TABLE SPDSWORK.CORE_APP AS 
	SELECT 
	A.CSID
	,A.CSREQUESTNUMBER
	,A.TRANSACTION_DTTM
	,A.PROCESSED_DTTM
	,A.PRODUCT_CATEGORY
	,A.APPLICATIONSCORING
	,A.SOURCEOFAPPLICATION 
	,A.GUARANTEEDAPPLICATIONIND 
	,A.REPROCESSQUANTITY 
        ,B.APPLICANT_SEQ
	,B.CIDPERSID AS CUS1_CIDPERSID 
        ,C.CIDPERSID AS CUS2_CIDPERSID 
	,D.SCOREMODELNAME 
	,E.OPENED_DT
	,1 AS NB_FLAG
	FROM SPDSWORK.OMDM_APPLICATION A 
	INNER JOIN SPDSWORK.APPLICANT  B
	ON A.CSID = B.CSID AND  b.APPLICATNT_SEQ=1
	LEFT JOIN SPDSWORK.APPLICANT  C
	ON A.CSID = C.CSID AND  c.APPLICATNT_SEQ=2
	INNER JOIN SPDSWORK.APPLICATIONSCORING D
    ON A.CSID = D.CSID
	LEFT JOIN SPDSWORK.CARDS_ACC2APP_LINKAGE E
    ON A.CSID = E.CSID
;
QUIT;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Oct 2019 12:02:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594452#M170783</guid>
      <dc:creator>utrocketeng</dc:creator>
      <dc:date>2019-10-07T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix ERROR: Unresolved reference to table/correlation name A</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594455#M170784</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/250748"&gt;@guest1994&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code is syntactically correct and works for suitable data. You would get the first error message if you omitted the "A" after "SPDSWORK.OMDM_APPLICATION". Most likely, the second error message is just a consequence of not recognizing A.CSID as the numeric value CSID from that dataset (and hence this error should vanish once the first issue is fixed).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need more help, please post the complete log of this PROC SQL step, i.e., the code&amp;nbsp;submitted and all pertinent errors, warnings and notes. Important: Paste the log into a &lt;EM&gt;code window&lt;/EM&gt; (opened with the &lt;FONT face="georgia,palatino" size="3" color="#999999"&gt;{i}&lt;/FONT&gt; button [tool tip: "Insert Code"]).&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 12:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-fix-ERROR-Unresolved-reference-to-table-correlation-name/m-p/594455#M170784</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-10-07T12:36:29Z</dc:date>
    </item>
  </channel>
</rss>

