Quantcast
Channel: SCN : Unanswered Discussions - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 3719

Maintaining Metadata within Data Services

$
0
0

Hi Guys,

I have a requirement where I have to load a table using DS.  I should be able to read a flag and decide which database table I have to load.  For example :

if the flag is '0', I should load in database_0.table,

and if the flag is '1', I should load database_1.table.

Both these tables reside on the same Datastore.  At the end of my job, I will need a way to update the flag to what it was NOT at the beginning of the job, so that the next run of the job will load the other database table.

I can easily do this using $GV and scripts, and storing this metadata flag in a table at the source of target datastore.

However, this now means that DS metadata is stored in another system.

Can I maintain this flag WITHIN DS so this is preserved from one job to another?  I've looked at $$SV, but it does not seem you can update that via a script in a job.

 

Any thoughts?

 

Thanks!

Ratu.


Viewing all articles
Browse latest Browse all 3719

Trending Articles



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