<?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 Join transformation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464375#M14457</link>
    <description>I'm unable to understand the solution for the issue. Could you please tell&lt;BR /&gt;me what should I do to resolve the issue?&lt;BR /&gt;</description>
    <pubDate>Wed, 23 May 2018 13:36:48 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-05-23T13:36:48Z</dc:date>
    <item>
      <title>Error in Join transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464366#M14455</link>
      <description>&lt;P&gt;When I tried to execute the join transformation, I'm receiving the error as mentioned below. Appreciate if someone of you help me understand the likely cause for the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Correlated reference to column PRODUCER_SK is not contained within a subquery.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;2392             udmtcom.F_PRM_WRITTEN_PREMIUM inner join
2393             udmtcom.D_POL_PRODUCT
2394                on
2395                (
2396                   F_PRM_WRITTEN_PREMIUM.PRODUCER_SK = D_PTY_PRODUCER.PRODUCER_SK
2397                   and F_PRM_WRITTEN_PREMIUM.PRODUCT_SK = D_POL_PRODUCT.PRODUCT_SK
2398                   and F_PRM_WRITTEN_PREMIUM.CUSTOMER_SK = D_PTY_PARTY.PARTY_SK
2399                   and F_PRM_WRITTEN_PREMIUM.POLICY_SK = D_POL_POLICY.POLICY_SK
2400                ),
2401             udmtcom.D_PTY_PARTY,
2402             udmtcom.D_POL_POLICY,
2403             udmtcom.D_REF_DATE,
2404             udmtcom.D_PTY_PRODUCER
2405          ;
ERROR: Correlated reference to column PRODUCER_SK is not contained within a subquery.
ERROR: Correlated reference to column PARTY_SK is not contained within a subquery.
ERROR: Correlated reference to column POLICY_SK is not contained within a subquery.
NOTE: PROC SQL set option NOEXEC and will continue to check the syntax of statements.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 May 2018 13:24:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464366#M14455</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-05-23T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Join transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464373#M14456</link>
      <description>&lt;P&gt;See here: &lt;A href="http://support.sas.com/kb/32/646.html" target="_blank"&gt;http://support.sas.com/kb/32/646.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Note that this is the &lt;EM&gt;first&lt;/EM&gt; hit of a google search for "sas ERROR: Correlated reference to column PRODUCER_SK is not contained within a subquery". See Maxim 6.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:33:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464373#M14456</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-23T13:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Join transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464375#M14457</link>
      <description>I'm unable to understand the solution for the issue. Could you please tell&lt;BR /&gt;me what should I do to resolve the issue?&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2018 13:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464375#M14457</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-05-23T13:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Join transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464378#M14458</link>
      <description>&lt;P&gt;Inner joins can be more easily written as:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  udmtcom.F_PRM_WRITTEN_PREMIUM,
  udmtcom.D_POL_PRODUCT,
  udmtcom.D_PTY_PARTY,
  udmtcom.D_POL_POLICY,
  udmtcom.D_REF_DATE,
  udmtcom.D_PTY_PRODUCER
where
  F_PRM_WRITTEN_PREMIUM.PRODUCER_SK = D_PTY_PRODUCER.PRODUCER_SK
  and F_PRM_WRITTEN_PREMIUM.PRODUCT_SK = D_POL_PRODUCT.PRODUCT_SK
  and F_PRM_WRITTEN_PREMIUM.CUSTOMER_SK = D_PTY_PARTY.PARTY_SK
  and F_PRM_WRITTEN_PREMIUM.POLICY_SK = D_POL_POLICY.POLICY_SK
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that you have not yet specified a correlation for D_REF_DATE&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 13:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464378#M14458</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-23T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Join transformation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464632#M14462</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If in the join properties IMPLICIT is set to NO then you need to formulate the join conditions per source available to the join. You can't just add all the logic to a single JOIN node as you've done it.&lt;/P&gt;
&lt;P&gt;In below flow for the first JOIN table CLASS_2 is not available and though you can't add a join condition which references this table. If you do so then you'll get the error you observe and what the SAS Note referenced by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; explains.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20736iB017D08485CD8FFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively set the JOIN property to IMPLICIT = YES or right click on the JOIN node and select it from the drop down list. Then add a WHERE node and formulate all your join conditions there.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 04:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-Join-transformation/m-p/464632#M14462</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-05-24T04:20:02Z</dc:date>
    </item>
  </channel>
</rss>

