<?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 change the type of Join in the ABT building in Credit Scoring 6.3 in SAS Risk Management</title>
    <link>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829073#M459</link>
    <description>The code was generated automatically in SAS Credit Scoring (web interface). I don't know how to change it.</description>
    <pubDate>Wed, 17 Aug 2022 16:57:46 GMT</pubDate>
    <dc:creator>a20121248</dc:creator>
    <dc:date>2022-08-17T16:57:46Z</dc:date>
    <item>
      <title>How to change the type of Join in the ABT building in Credit Scoring 6.3</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829058#M457</link>
      <description>&lt;P&gt;I am building ABTs with SAS Credit Scoring. The structure of my project is the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Subject of Analysis: Monthly Customers table&lt;/LI&gt;&lt;LI&gt;Variables: Monthly Customers table (come from external datasets). Not every customer is present in every month, they could not have info.&lt;/LI&gt;&lt;LI&gt;Default: Monthly Customers table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need to build an ABT that starts and ends with the same number of records, but our final ABT ends up having 30% of the expected records. I see in the logs that Credit Scoring is doing INNER JOIN (see code below) when building the ABT, and since not every client are in all tables, we lose records. &lt;STRONG&gt;Is there a way to change to a LEFT JOIN operator in the ABT building process?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* Creating mapping table containing population satisfying the specified subset criteria */

proc sql noprint &amp;amp;sql_option.;
	create table &amp;amp;LIB_SCR..m_&amp;amp;VAR_TARGET_TABLE_SK._l4_1_&amp;amp;RUN_NO._rk as
	select TABLE1.KEY1 as KEY1, TABLE1.KEY2 as KEY2
	from FMART.TABLE1 t1
&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;	inner join &amp;amp;LIB_SCR..m_&amp;amp;VAR_TARGET_TABLE_SK._l1_1_&amp;amp;RUN_NO. t2&lt;/FONT&gt;&lt;/STRONG&gt;		on (TABLE1.KEY1 = t2.KEY1)
	where (&amp;amp;DABT_LOAD_USER_INPUT_DTTM &amp;gt;= TABLE1.VALID_START_DTTM and &amp;amp;DABT_LOAD_USER_INPUT_DTTM &amp;lt;= TABLE1.VALID_END_DTTM )
	;
quit;
%dabt_err_chk(type=SQL);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you again.&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:04:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829058#M457</guid>
      <dc:creator>a20121248</dc:creator>
      <dc:date>2022-08-17T16:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the type of Join in the ABT building in Credit Scoring 6.3</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829062#M458</link>
      <description>&lt;P&gt;Replace the inner join keyword with left join&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 16:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829062#M458</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-08-17T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the type of Join in the ABT building in Credit Scoring 6.3</title>
      <link>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829073#M459</link>
      <description>The code was generated automatically in SAS Credit Scoring (web interface). I don't know how to change it.</description>
      <pubDate>Wed, 17 Aug 2022 16:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Risk-Management/How-to-change-the-type-of-Join-in-the-ABT-building-in-Credit/m-p/829073#M459</guid>
      <dc:creator>a20121248</dc:creator>
      <dc:date>2022-08-17T16:57:46Z</dc:date>
    </item>
  </channel>
</rss>

