Quantcast
Channel: Data Services and Data Quality
Viewing all articles
Browse latest Browse all 236

Using BODS Metadata tables to find where SYSDATE is hardcoded

$
0
0

Hi All,

 

Here is a query to find where SYSDATE is hard coded in all BODS ETL jobs.

 

SELECT DISTINCT parent_obj

   FROM di_repo.al_parent_child,

  di_repo.al_langtext

  WHERE parent_obj_key=parent_objid

  and parent_obj_type<>'DataFlow'

AND parent_obj NOT LIKE 'Copy_%'

AND regexp_count(upper(text_value),'(SYSDATE)')>0;

 

 

This will help in identifying the jobs having SYSDATE hard coded and can change the code to make it as TABLE driven.

Create a function to call this TABLE and then pass parameters to it get the value and that value can passed to a Global variable in the BODS Script.

As you may know GV can be reused in many places.

 

Hope this will be helpful.

 

Thanks,

Abdulrasheed.


Viewing all articles
Browse latest Browse all 236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>