We have a datastage job which reads from a table and loads in to target table using 2 odbc stages.
Code: Select all
Diagram
--------Transformer-----ODBC
ODBC ----------processing
------Transformer-------ODBC
We are implementing Slowly changing Dimension 1.
To implement Slowly changing Dimension 1 both the Target ODBC stages use the "delete statement" in the open command of Target ODBC stages.
The issue we are facing is there are some records missing in the target table after ETL is executed.
The loss of data happens only in PROD environment. We could not recreate the same scenario in lower environments.
For debugging we added the datasets at the transformers just before the Target ODBC stages and could see data in datasets but not in table.
Is this being caused because the "delete statements" are being executed after one another.
Technically, to my knowledge they should execute "delete statements" the moment job starts.
Any help resolving this issue is highly appreciated