Page 1 of 1

insert data into table that is being populated

Posted: Mon Apr 17, 2006 10:02 am
by datastgnewbie
Hi everyone,
I have a column X that is being populated, in the transformer, after that value has been populated i need to take column X and compare it to another reference table, to populate another column. I tried this so far and i kept crashing datastage. After column x was done i sent that to a hash file and than to a transformer where that was compared to the reference table, than sent back to another hash file where i sent it to the final table but it kept on crashing because the table was already open. If anyone has any suggestion it is greatly appriacated. THANKS

Posted: Mon Apr 17, 2006 11:11 am
by diamondabhi
Can you post the exact error that you are getting?

Posted: Mon Apr 17, 2006 1:52 pm
by DSguru2B
When you say Column X populated in transformer would make us assume that you are populating it through datastage(not from the table).
Post your design.

Posted: Mon Apr 17, 2006 1:58 pm
by kris_daredevil
load the x column into file instead of loading into table and make look up with reference column and then finnaly load into table.

Posted: Mon Apr 17, 2006 3:30 pm
by ray.wurlod
It's unhelpful not having the exact error message. Chances are that you're trying to do too much with two few stages, or even too few jobs, and perhaps getting locking issues in the database.

Staging the intermediate data, perhaps into a file as the previous poster suggested, is one way, but you can get by simply by streaming the result of the first lookup into a second Transformer stage in order to perform the second lookup.

If there may be repeats in the source data, use a hashed file to contain a copy of current rows from the target table. The hashed file can be updated without needing to touch the target table. There are plenty of descriptions of this technique on this forum. A Search will find them.

Posted: Mon Apr 17, 2006 5:04 pm
by kris_daredevil
ray.wurlod wrote:It's unhelpful not having the exact error message. Chances are that you're trying to do too much with two few stages, or even too few jobs, and perhaps getting locking issues in the database.

Stag ...
ray
i think he is loading the same table in the etl twice which is causing the etl job to hang!!!