how to create a dynamic lookup in Datastage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
abha.kalra
Participant
Posts: 37
Joined: Fri Oct 21, 2005 4:09 am

how to create a dynamic lookup in Datastage

Post by abha.kalra »

Hi,
i m created a hash file from the real time Database. i want that every time an entry is made in database should be reflect in hash file made in datastage without resetting the job or connection. can it be done in datastage?
Thanks and Regards
Abha
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Can it be done, yes. Is it worth the effort, probably not. A realtime connection from the database either needs DS RTI, or you're going to need to embed triggers in the database to feed updates to either a queue or a queue table and use microbatches to continuously query the table and feed to the hash file. However, during hash updates, either you're going to have to introduce row level locking defeating all caching, or guarantee queries against the hash file will only occur between refresh cycles.

Why do you think you need to do this?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply