BookmarkSubscribeRSS Feed
Egrodrigues2014
Fluorite | Level 6

Hi everyone,

 

When I set BULK LOAD option as active, SCD2 transformation create the following code (for ETLS_CLOSE as example):

 

      proc append base = EXT_VI."W6B3BTSM"n
         (
            BULKLOAD=YES
         )
         data = work."ETLS_CLOSE"n force; 
      run;

But this code doesn't work. I need to set "bl_psql_path='/PATH' " and "bl_delete_datafile=no" dataset option to BULKLOAD works properly.

I aware that I can change the automatic generated code to add these options.

 

Is there a way to configure these options at the transformation level? Or a way that I can add these options without change the code manually?

 

Thanks in advance.

2 REPLIES 2
LinusH
Tourmaline | Level 20

Unsure if you can do this using standard options in the transformation.

But I am wondering if you have a good use case here.

S in SCD stands for Slowly, so you shouldn't have millions of records that needs closing out.

If not done so already, you could try the SQL Pass through option, it might speed up the process depending on the performance of your RDBMS.

Data never sleeps
Egrodrigues2014
Fluorite | Level 6

Hi @LinusH ,

 

We need to load the historical records and this data volume will be only in the first iteration.

 

As you can see, we change the option "Upload library before targe table update" to EXT_VI library. But the "etls" tables still in work library.

 

 

/* Delete the work tables  */ 
      proc datasets lib=EXT_VI nolist nowarn memtype = (data view);
         delete "W6B3TJ5F"n;
         delete "W6B3TIUB"n;
         delete "W6B3TIOR"n;
      quit;   
     
         proc datasets lib=work nolist nowarn memtype = (data view);
            delete etls_newrcds;
            delete etls_match;
            delete etls_close;
         quit;

To load data from work to postgres tables, we need to set bulkload.

 

 

Is there a way so that these tables are also generated in the "EXT_VI" (postgres) library ? Thus, passthrough can be performed without the need for BULKLOAD.

 

We set "Libref to copy temporary work tables to" SCD option to EXT_VI, but it does not work. 

 

Thanks in advance.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 917 views
  • 0 likes
  • 2 in conversation