<?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: Oracle Bulk Loader - Order of execution in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Oracle-Bulk-Loader-Order-of-execution/m-p/728182#M19871</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215446"&gt;@mjf_unt&lt;/a&gt;&amp;nbsp;Any code provided and enabled in the Precode and Postcode will come before (Precode) and after (Postcode) the "core" code of the transformation.&amp;nbsp; The "core" code of the transformation in this case is the Oracle Load Technique settings.&amp;nbsp; This rule is true for all DI Studio transforms.&amp;nbsp; In your scenario:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clwatson_1-1616417908792.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56242i11C0C9AD427FA18E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clwatson_1-1616417908792.png" alt="clwatson_1-1616417908792.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That code then gets generated before the core transform code, which for the Oracle Bulk Table Loader is the settings on the Load Technique tab.&lt;/P&gt;
&lt;P&gt;Here's some bits of the excerpts from my pictured example:&lt;/P&gt;
&lt;PRE&gt;/*==========================================================================*
* Step: Oracle Bulk Table Loader A5RMRMLZ.$0000079 *
* Transform: Oracle Bulk Table Loader *
* Description: *
* *
* Source Table: CARS - SASHELP.CARS A5RMRMLZ.BK00002M *
* Target Table: CARS - oracle.CARS A5RMRMLZ.BK000002 *
*==========================================================================*/
.....
%let SYSLAST = %nrquote(SASHELP."CARS"n);

%let ETLS_SYSLAST = &amp;amp;SYSLAST;
&lt;STRONG&gt;/*---- Start of Pre-Process Code ----*/
data _null_;
put 'This is precode for transformation';
run;
/*---- End of Pre-Process Code ----*/&lt;/STRONG&gt;

%rcSet(&amp;amp;syserr);
%rcSet(&amp;amp;sqlrc);

%let SYSLAST = &amp;amp;ETLS_SYSLAST;

%global etls_tableExist;
...
%let etls_lastTable = &amp;amp;SYSLAST;

&lt;STRONG&gt;/*---- Define load data macro ----*/

%macro etls_loader;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;I've bolded the pre-code area and then the start of the "core" Oracle Bulk Loader Transformation.&lt;/P&gt;
&lt;P&gt;So to answer your question, the pre-code specified on the Precode and Postcode tab will take precedence over any "core" functionality of DI transformations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 13:47:33 GMT</pubDate>
    <dc:creator>clwatson</dc:creator>
    <dc:date>2021-03-22T13:47:33Z</dc:date>
    <item>
      <title>Oracle Bulk Loader - Order of execution</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Oracle-Bulk-Loader-Order-of-execution/m-p/727160#M19865</link>
      <description>&lt;P&gt;I've got a general question on the order of execution with regards to the generated PROC SQL in an Oracle Bulk Loader transformation. While I have examined the generated code in question, I am no expert at the base code and would prefer a better explanation if possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I'm trying to understand: I'm looking to use the bulk load transformation with the "Drop and recreated indexes" option enabled. Furthermore, I'm considering adding a snippet of code to the Pre-code portion of the transformation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What will be the order in which these items execute? Will the DROP INDEX execute first, prior to any other actions in the code? Or does the Pre-code section take precedent?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:16:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Oracle-Bulk-Loader-Order-of-execution/m-p/727160#M19865</guid>
      <dc:creator>mjf_unt</dc:creator>
      <dc:date>2021-03-17T16:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Oracle Bulk Loader - Order of execution</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Oracle-Bulk-Loader-Order-of-execution/m-p/728182#M19871</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/215446"&gt;@mjf_unt&lt;/a&gt;&amp;nbsp;Any code provided and enabled in the Precode and Postcode will come before (Precode) and after (Postcode) the "core" code of the transformation.&amp;nbsp; The "core" code of the transformation in this case is the Oracle Load Technique settings.&amp;nbsp; This rule is true for all DI Studio transforms.&amp;nbsp; In your scenario:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clwatson_1-1616417908792.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56242i11C0C9AD427FA18E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clwatson_1-1616417908792.png" alt="clwatson_1-1616417908792.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That code then gets generated before the core transform code, which for the Oracle Bulk Table Loader is the settings on the Load Technique tab.&lt;/P&gt;
&lt;P&gt;Here's some bits of the excerpts from my pictured example:&lt;/P&gt;
&lt;PRE&gt;/*==========================================================================*
* Step: Oracle Bulk Table Loader A5RMRMLZ.$0000079 *
* Transform: Oracle Bulk Table Loader *
* Description: *
* *
* Source Table: CARS - SASHELP.CARS A5RMRMLZ.BK00002M *
* Target Table: CARS - oracle.CARS A5RMRMLZ.BK000002 *
*==========================================================================*/
.....
%let SYSLAST = %nrquote(SASHELP."CARS"n);

%let ETLS_SYSLAST = &amp;amp;SYSLAST;
&lt;STRONG&gt;/*---- Start of Pre-Process Code ----*/
data _null_;
put 'This is precode for transformation';
run;
/*---- End of Pre-Process Code ----*/&lt;/STRONG&gt;

%rcSet(&amp;amp;syserr);
%rcSet(&amp;amp;sqlrc);

%let SYSLAST = &amp;amp;ETLS_SYSLAST;

%global etls_tableExist;
...
%let etls_lastTable = &amp;amp;SYSLAST;

&lt;STRONG&gt;/*---- Define load data macro ----*/

%macro etls_loader;&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;I've bolded the pre-code area and then the start of the "core" Oracle Bulk Loader Transformation.&lt;/P&gt;
&lt;P&gt;So to answer your question, the pre-code specified on the Precode and Postcode tab will take precedence over any "core" functionality of DI transformations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 13:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Oracle-Bulk-Loader-Order-of-execution/m-p/728182#M19871</guid>
      <dc:creator>clwatson</dc:creator>
      <dc:date>2021-03-22T13:47:33Z</dc:date>
    </item>
  </channel>
</rss>

